WordPress.org

Ready to get started?Download WordPress

Forums

Hide specific content on homepage (1 post)

  1. hypescience
    Member
    Posted 4 years ago #

    Hello,

    I want to hide some stuff that is on sidebar.php when the user is on the site homepage (root of the site, index.php).

    I tried this, but looks like my site does not like this tag:

    <?php if(!(is_home())) { echo "This isn't home"; } ?>

    I can read "This isn't home", on my fraking homepage.

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic