Hide specific content on homepage
-
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.
- The topic ‘Hide specific content on homepage’ is closed to new replies.