WordPress.org

Ready to get started?Download WordPress

Forums

removing nivo slider slideshow from inside pages of site (1 post)

  1. FLkeysamy
    Member
    Posted 2 years ago #

    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 -->'

Topic Closed

This topic has been closed to new replies.

About this Topic