Tagged: breadcrumbs, category, Name
Hello.
How can I modify breadcrumbs to follow my primary category path?
Right now my default category is always showing as part of path to posts.
When I switched to Yoast SEO breadcrumbs, path was ok.
My primary category:
Primary category in Yoast SEO breadcrumbs is ok:
Wrong category in Enfold breadcrumbs:
Or can you help me with styling yoast seo to get same look as Enfold breadcrumbs? I can’t find proper css to edit.
Thank you.
Hi rimlightstudio,
Could you provide us with a link to the site in question so that we can take a closer look please?
Thanks,
Rikard
Yeah. Sure.
that post should be in category “Zamki i Pałace” but right now is in “Aktualności” It is in both of them but first one is set as primary. It is for all posts.
Thank you.
Hi!
You can replace the default breadcrumb with yoast. Configure the breadcrumb options in Yoast panel then add this in the functions.php file:
add_filter( 'avf_title_args', 'avf_title_args_yoastb', 10, 1 );
function avf_title_args_yoastb( $args ) {
$args['breadcrumb'] = false;
ob_start();
yoast_breadcrumb();
$yoastb = ob_get_clean();
$args['additions'] = '<div class="breadcrumb breadcrumbs avia-breadcrumbs">'.$yoastb.'</div>';
return $args;
}
Cheers!
Ismael
thank you. Works like a charm :)
Hey!
Glad we could help! We have put together some info about enfold theme please feel free to check it out here – http://kriesi.at/documentation/enfold/
Best regards,
Vinay