• Hi,

    I have a slider on every opage apoart from the home page.

    However, I want the slider only on the homepage.

    Can someone help me finish the puzzle please?

    php code in index.php :

    <?php if (is_home()) { } Else { ?> 
    
    <div class="nivoSlider">
      <img src="https://allgonep.fu8.com/wp-content/themes/graphene/images/slide_images/1_crystal_fighters.jpg" title="hello" />
      <img src="https://allgonep.fu8.com/wp-content/themes/graphene/images/slide_images/2_you_are_music.jpg" title="test" />
      <img src="https://allgonep.fu8.com/wp-content/themes/graphene/images/slide_images/3_monica.jpg" title="dudes" />
      <img src="https://allgonep.fu8.com/wp-content/themes/graphene/images/slide_images/4_the_magic_numbers.jpg" title="test 2" />
    </div>
    
     <?php } ?>
Viewing 1 replies (of 1 total)
  • <?php if (is_home()) {  ?> 
    
    <div class="nivoSlider">
      <img src="https://allgonep.fu8.com/wp-content/themes/graphene/images/slide_images/1_crystal_fighters.jpg" title="hello" />
      <img src="https://allgonep.fu8.com/wp-content/themes/graphene/images/slide_images/2_you_are_music.jpg" title="test" />
      <img src="https://allgonep.fu8.com/wp-content/themes/graphene/images/slide_images/3_monica.jpg" title="dudes" />
      <img src="https://allgonep.fu8.com/wp-content/themes/graphene/images/slide_images/4_the_magic_numbers.jpg" title="test 2" />
    </div>
    
     <?php } ?>

    no need to put the else part into it if it does nothing.

Viewing 1 replies (of 1 total)
  • The topic ‘I need the reverese of this – everything on every page but home page’ is closed to new replies.