Created
December 19, 2017 22:19
-
-
Save robin-scott/37fe21e51388ace49cbc0fd641498635 to your computer and use it in GitHub Desktop.
Hide stuff on front page - WordPress PHP code example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the gist below will hide stuff on the frontpage in wordpress, when added to a theme template file... see https://silicondales.com/tutorials/wordpress-tutorials/code-hide-content-front-page-wordpress/ | |
<?php if( !is_front_page() ) {?> | |
// hide this stuff | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment