wrap breadcrumbs into #main div
-
Hi
Thanks for the plugin. It serves my site well.
When i add the breadcrumbs to the site, i notice that a <p id=”#breadcrumbs”> tag is placed above my #main div that wraps the content.
How can i bring the <p id=”#breadcrumbs”> tag into the #main div?
BTW:
Today i noticed that the «Structured Data Testing Tool» was complaining about a missing url in the breadcrumbs.
I added this code to my functions.php and could remove the error:// Add link to last breadcrumb URL add_filter( 'wpseo_breadcrumb_single_link', 'link_to_last_crumb' , 10, 2); function link_to_last_crumb( $output, $crumb){ if ( is_array( $crumb ) && $crumb !== array() ) { !==false || strpos( $output, '<strong class="breadcrumb_last"' ) !==false ) { $output = '<span typeof="v:Breadcrumb"><a href="'. $crumb['url']. '" rel="v:url" property="v:title">'; $output.= $crumb['text']; $output.= '</a></span>'; } return $output; }
It may work for others too.
regards
theo
- The topic ‘wrap breadcrumbs into #main div’ is closed to new replies.