The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Show something everywhere but on index (2 posts)

  1. Anders Noren
    Posted 5 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 5 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