Hi there,
you will need to replace part-slider.php with
</div>
</div>
</div><?php if( get_theme_mod( 'home_slider_show', 1 ) == 1 ): ?>
<?php
$q = false;
$args = false;
if ( get_theme_mod( 'home_slider_show_recent', 0 ) == 1 ) {
$args = array(
'post_type' => 'post',
'posts_per_page' => get_theme_mod( 'home_slider_limit' ),
);
} elseif ( get_theme_mod( 'home_slider_postids' ) ) {
$args = array(
'post_type' => 'post',
'post__in' => explode( ',', get_theme_mod( 'home_slider_postids' ) ),
'posts_per_page' => get_theme_mod( 'home_slider_limit' ),
'orderby' => 'post__in',
);
} elseif ( get_theme_mod( 'home_slider_term' ) ) {
$args = array(
'post_type' => 'post',
'tax_query' => array(
array(
'taxonomy' => 'category',
'terms' => get_theme_mod( 'home_slider_term' )
),
),
'posts_per_page' => get_theme_mod( 'home_slider_limit' ),
);
}
if( $args !== false ) {
$q = new WP_Query( $args );
}
$attributes = sprintf( 'data-autoplay="%s" data-autoplayspeed="%s" data-fade="%s"',
esc_attr( get_theme_mod( 'home_slider_autoplay', 1 ) ),
esc_attr( get_theme_mod( 'home_slider_autoplaySpeed', 3000 ) ),
esc_attr( get_theme_mod( 'home_slider_fade', 1 ) )
);
?>
<?php if( $args !== false && $q !== false && $q->have_posts() ): ?>
<div class="slick-slider home-slider" <?php echo $attributes; ?>>
<?php while( $q->have_posts() ): $q->the_post(); ?>
<div class="slide">
<?php the_post_thumbnail( 'ci_slider' ); ?>
<?php if ( ! get_theme_mod('home_slider_hide_content') ) : ?>
<div class="slide-content">
<?php if ( get_post_type() === 'post' ) : ?>
<div class="entry-meta entry-meta-top">
<p class="entry-categories">
<?php the_category( ', ' ); ?>
</p>
</div>
<?php endif; ?>
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2>
<?php if ( get_post_type() === 'post' ) : ?>
<div class="entry-meta entry-meta-bottom">
<time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time>
<a href="<?php echo esc_url( get_comments_link() ); ?>" class="entry-comments-no"><?php comments_number(); ?></a>
</div>
<?php endif; ?>
<a href="<?php the_permalink(); ?>" class="read-more"><?php _e( 'Continue Reading', 'ci_theme' ); ?></a>
</div>
<?php endif; // hide content ?>
</div>
<?php endwhile; ?>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="container">
<div class="row">
<div class="col-md-12">
and change in functions.php
add_image_size( 'ci_slider', 1110, 600, true );
to
add_image_size( 'ci_slider', 1920, 600, true );
then install the Regenerate thumbnails plugin, activate it and go to Tools -> Regen. Thumbnails to run a regeneration in order for the change to be applied.
Try installing the WP Editor plugin to enhance the default editor and then navigate to the /themes/olsenlight/ folder to find these files.
Finally, add this
.entry-utils:before{
background:none;
}
in your custom CSS box to remove the gray divider lines between posts.
Let me know if this works