Skip to content

Instantly share code, notes, and snippets.

@robin-scott

robin-scott/page.php

Created Dec 19, 2017
Embed
What would you like to do?
Hide Yoast breadcrumbs on frontpage of WordPress
//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