WordPress.org

Ready to get started?Download WordPress

Forums

Show something everywhere but on index (2 posts)

  1. Anders Norén
    Member
    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.

    Thanks!

  2. esmi
    Forum Moderator
    Posted 3 years ago #

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

    http://codex.wordpress.org/Conditional_Tags

Topic Closed

This topic has been closed to new replies.

About this Topic