How to hide breadcrumbs and surrounding markup.
-
In older versions of Yoast WordPress SEO you were able to just check if the breadcrumb function exists, if it does not exist (breadcrumbs disabled) it would hide surrounding markup.
Below example seemed to fix this for me.
<?php $yoast_option = get_option( 'wpseo_internallinks' ); if ( function_exists('yoast_breadcrumb') && $yoast_option['breadcrumbs-enable'] && !is_front_page() ): ?> <div id="breadcrumbs" class="row-fluid"> <div class="span12"> <?php yoast_breadcrumb('<ul>', '</ul>', true, array( 'sep' => '>', 'prefix' => '', )); ?> </div> </div> <?php endif; ?>
Figured this might help someone after the update to 1.5.2, the behaviour seemed to change.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to hide breadcrumbs and surrounding markup.’ is closed to new replies.