Ready to get started?Download WordPress


Hide specific content on homepage (1 post)

  1. hypescience
    Posted 5 years ago #


    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