Created
December 19, 2017 22:22
-
-
Save robin-scott/27b6e4fcfa3a82f6bc37ca201db617e2 to your computer and use it in GitHub Desktop.
Hide Yoast breadcrumbs on frontpage of WordPress
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
//this gist will hide Yoast breadcrumbs on the blog front page (the home page if you made this a page) | |
// see https://silicondales.com/tutorials/wordpress-tutorials/code-hide-content-front-page-wordpress/ | |
<?php if( !is_front_page() ) { | |
if ( function_exists('yoast_breadcrumb') ) { | |
yoast_breadcrumb(' | |
<p id="breadcrumbs">','</p> | |
'); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment