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

    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.

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

    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

    #606760

    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.

    #607364

    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

    #607519

    thank you. Works like a charm :)

    #607535

    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

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

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