Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #605787


    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.

    • This topic was modified 4 years, 9 months ago by  Maciej.

    Hi rimlightstudio,

    Could you provide us with a link to the site in question so that we can take a closer look please?



    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.



    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;
    	$yoastb = ob_get_clean();
    	$args['additions'] = '<div class="breadcrumb breadcrumbs avia-breadcrumbs">'.$yoastb.'</div>';
    	return $args;



    thank you. Works like a charm :)



    Glad we could help! We have put together some info about enfold theme please feel free to check it out here –

    Best regards,

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Make breadcrumb path follow primary category’ is closed to new replies.