Ready to get started?Download WordPress


Show something everywhere but on index (2 posts)

  1. Anders Norén
    Posted 3 years ago #

    Hi! I was hoping someone could help me with a little bit of PHP.

    I have an ad that I want to display everywhere but on index. I know how to make something show only on a specific page, but I am unsure on how to hide something on a specific page.


  2. esmi
    Forum Moderator
    Posted 3 years ago #

    <?php if(!is_home() && !is_front_page() ):?>
    [ ad code goes here ]
    <?php endif;?>


Topic Closed

This topic has been closed to new replies.

About this Topic