[Plugin: Yoast Breadcrumbs] How to remove page title from breadcrumb
-
This is actually not a question, but a hack that might be useful to others.
I needed to remove the post title from the breadcrumb. Here is how i did it:
<!-- breadcrumbs: start --> <?php if ( function_exists('yoast_breadcrumb') ) { $opt = get_option("wpseo_internallinks"); $sep = ( isset($opt['breadcrumbs-sep']) && $opt['breadcrumbs-sep'] != '' ) ? $opt['breadcrumbs-sep'] : '?'; $breadcrumbs = yoast_breadcrumb('','',false); $linksArr = split($sep, $breadcrumbs); array_pop($linksArr); echo '<nav id="breadcrumbs">'.implode($sep,$linksArr).'</nav>'; } ?> <!-- breadcrumbs: end -->
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Yoast Breadcrumbs] How to remove page title from breadcrumb’ is closed to new replies.