• Hello!
    Is it possible to have at once 3 images (320px wide) on slider carousel? (instead of one).

    Is it possible to show post title under photo then?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,
    Thank you for using Olsen light
    You can only create one image with these 3 images wrapped as one. But you can replace the default Olsen light slider with any third party one from www.ads-software.com plugin repository that might have the behaviour you want.

    Do you want to add post title under the photo for listings and single posts?
    If yes open single.php and content-entry.php and move

    				<?php if ( has_post_thumbnail() ) : ?>
    								<div class="entry-featured">
    									<a class="ci-lightbox" href="<?php echo esc_url( olsen_light_get_image_src( get_post_thumbnail_id(), 'large' ) ); ?>">
    										<?php the_post_thumbnail( 'post-thumbnail', array( 'itemprop' => 'image' ) ); ?>
    									</a>
    								</div>
    							<?php endif; ?>
    

    before

    			<h2 class="entry-title" itemprop="headline">
    								<?php the_title(); ?>
    							</h2>

    If you decide to proceed with this modification I would suggest you create a child theme, copy over the files you are editing and make the modifications there. This will allow your changes to survive future theme updates. If you directly edit the theme’s files, all changes will be lost once you update.

    Have a look at this guide to learn more about child themes and how to create one https://www.cssigniter.com/ignite/beginners-guide-child-themes/

    Let me know if you need additional help with this.

    Thread Starter evvazoe

    (@evvazoe)

    Thank you, I will consider it.

    Another question. When the original slider is on, on mobile it shows on every page of blog archive. Can it be shown only on first page?

    • This reply was modified 5 years, 4 months ago by evvazoe.

    Hi there,
    Slider will always show on on the home page (which is your blog page) and not in archives. Unless you need to show it in the frontpage only (if you have a frontpage under Settings->Reading) open header.php and replace

    				<?php if ( is_home() ) {
    					get_template_part( 'part', 'slider' );
    				} ?>

    with this

    				<?php if ( is_front_page() ) {
    					get_template_part( 'part', 'slider' );
    				} ?>

    Let me know if you need additional help with this.

    Thread Starter evvazoe

    (@evvazoe)

    Unfortunately it didn’t help, because the slider didn’t show anywhere…
    Yes, the slider shows on home which is static page, but it is also blog string with pages, and because of that slider shows on every blog page.

    I have tried also to make the child theme, using the tutorial you gave me, but I have failed – I successfully created folder with proper files, but system message was that there is no parent theme… (I use Olsen Light). Using plugin made a mess with my styling.

    • This reply was modified 5 years, 4 months ago by evvazoe.

    Hi there,
    The suggestion I made will help you out(you can test it in your parent theme), but will need to setup your child theme correctly. Have you tried in my article the plugin method of creating a child theme?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘front page carousel – changing size & amount of photos’ is closed to new replies.