WordPress.org

Support

Support » How-To and Troubleshooting » removing nivo slider slideshow from inside pages of site

removing nivo slider slideshow from inside pages of site

  • Thanks for any help! I coded the nivo slider slideshow into the header of my wordpress custom template, and added an “if/else” conditional tag so a still image would show up on interior pages. Now they want the image removed completely from the inside pages. No slideshow or images. I’m a newbie to this custom theme thing, can you have 2 header files in your theme? One with the slideshow and one without? Can someone point me in the right direction? Here’s the code in my header file;
    ‘ <div id=”slideshow-wrapper”>
    <div class=”slideshow-display”>
    <?php
    global $pagevariant;
    /* only show slideshow on front page */
    if ($pagevariant == “homepage” ) {
    ?>
    <div id=”slideshow-wrapper”>

    <?php echo do_shortcode(‘[nivoslider slug=”header”]’); ?>

    </div>
    <?php
    } else {
    ?>

    <img src=”<?php bloginfo(‘template_directory’); ?>/images/slideshow2.jpg” />

    <?php
    } /* end of slideshow conditional */
    ?>

    </div><!– end #slideshow-wrapper –>
    </div><!– end .slideshow-display –>’

  • The topic ‘removing nivo slider slideshow from inside pages of site’ is closed to new replies.
Skip to toolbar