• Resolved kristonweb

    (@kristonweb)


    Hello,

    First of all, thank you for your great theme! Just the layout I was looking for!

    I’ve made a Childtheme to make some changes to meet my demands, but there’s one thing I don’t understand.

    How can I display the slideshow on all pages?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Brian Harris

    (@zgani)

    Thank you for choosing and using WP StrapSlider.

    To show the slider on all pages please copy header.php from the parent theme and add it your child theme. Then edit the following code found in header.php from line 33…

    <?php if ( get_theme_mod( 'wpstrapslider_slider_visibility' ) != 0 ) { ?>
        <?php if ( is_front_page() ) : ?>
            <?php get_template_part( 'slider' ); ?>
        <?php endif; ?>
    <?php } ?>

    To the following

    <?php if ( get_theme_mod( 'wpstrapslider_slider_visibility' ) != 0 ) { ?>
        <?php get_template_part( 'slider' ); ?>
    <?php } ?>

    That should render the slider on all pages.

    Thread Starter kristonweb

    (@kristonweb)

    Thank you for your help, I’ve changed the code and it works!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘display slider on all pages’ is closed to new replies.