Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #834870

    Hello to you,

    I have an issue regarding the breadcrumbs. The breadcrumbs are always showing BLOG, for example:

    Category blog post shows: Home / Blog / Blog / Critical/ Politics
    but should show: Home / Blog / Critical / Politics

    Category recipes post shows: Home / Blog / Recipes / Cakes / Lemon Cake
    but should show: Home / Recipes / Cakes / Lemon Cake

    Category lifestyle post shows: Home / Blog / Lifestyle / Bodycare / Shampoo
    but should show: Home / Lifestyle / Bodycare / Shampoo

    Can you help and tell, why it is always showing “Blog”? Also, for example, when chosing menu item “Recipes” of the main menu and select a post, it automatically jumps back to menu item “Blog”.

    My site is still in maintenance mode, thus please kindly find login details for my testdomain and some more info in private content box.

    Thanks for all your help in advance.

    Cheers
    Sophie

    #837010

    Hey Sophie,

    Thank you for using our theme. Sorry for the late reply due to summer holidays.

    This is a standard behaviour of Enfold’s breadcrumb logic, which tries to reflect the hierarchical logic in WP taxonomies.

    A post is part of the blog and therefore reachable via the selected “blog” page in Enfold theme settings. The rest of the breadcrumb is built from the categories, which may also be hierarchical.

    This has nothing to do with the permalink structure.

    Hope, I could help you with this information.

    Best regards,
    Günter

    #837031

    Hi Günter,

    thank you for your kind reply. But why does it show “blog” twice, e.g.: Home / Blog / Blog / Critical/ Politics? Also, on category recipes page and category lifestyle page via masonry element I have not selected blog, only recipes resp. lifestyle. This way this is not usable for me, because I have so many subcategories that need to be parted into parent categories blog, recipes and lifestyle.

    Here was someone who had the same issue, I guess: https://kriesi.at/support/topic/duplicate-terms-titles-in-the-breadcrumb-for-newsblog-posts/ but I don’t know how to solve in my case.

    How can I change Enfold’s breadcrumb logic? And how to avoid always jumping back to “blog” when for example menu item “recipes” was chosen? Your help is really appreciated.

    Best regards
    Sophie

    #837409

    Hi Sophie,

    I am seeing blog only once in breadcrumbs, could you please point us to the pages where you have the issue?

    Best regards,
    Victoria

    #838678
    This reply has been marked as private.
    #839332

    Hi Sophie,

    I think you are getting “Blog” because those are posts and so for WordPress they are in the “blog” section, and then in the categories.
    http://www.wpbeginner.com/plugins/how-to-display-breadcrumb-navigation-links-in-wordpress/

    Did you try the solution here
    https://kriesi.at/support/topic/breadcrumbs-for-home-category-postname/#post-214998

    Best regards,
    Victoria

    #840079

    Hi Victoria,

    thanks a lot for your fast reply :-) .

    I played around a little and I guess I found the solution regarding displaying BLOG twice: It’s because I have a category named BLOG and when renaming it to e.g. NEWS, then the breadcrumbs are showing HOME / BLOG / NEWS / POSTNAME instead of HOME / BLOG / BLOG / POSTNAME.

    Regardless, the code in your link provided is not working for me to remove BLOG in the breadcrumbs in general.

    And although I tried the other suggested possible solution as per in your link provided (https://kriesi.at/support/topic/breadcrumbs-for-home-category-postname/#post-214578) and deselecting the blog page in Enfold > Theme settings, the BLOG in breadcrumbs is disabled and it also disables the “jumping” from categories RECIPES and LIFESTYLE to BLOG in the main menu, but now the postname is showing twice instead, for example:
    > HOME / POSTNAME / NEWS / CATEGORY / POSTNAME
    > HOME / POSTNAME / RECIPES / SUBCATEGORY / POSTNAME
    etc.

    If I could remove the first POSTNAME after HOME in the breadcrumbs, it would be perfect :-) . Can you please help? Would be great!

    Cheers
    Sophie

    #841327

    Hi Sophie,

    That’s great progress, Sophie! Do you still have code from the threads in your functions.php? I don’t see the Editor menu item in the Appearance menu and so I cannot check myself. That’s weird, the postname does not not normally show up there.

    Best regards,
    Victoria

    #842671

    Hi Victoria,

    I already removed the code from the threads in my functions.php. Would be awesome, if you could help me removing the first POSTNAME after HOME in the breadcrumbs. Thanks for all your efforts in advance.

    Have a great day!

    Best regards
    Sophie

    #843855

    Hi Sophie,

    Could you please switch to Enfold parent theme and see if the issue is still there, and then switch to a default theme and test like that?

    Best regards,
    Victoria

    #843934

    Hi Victoria,

    when I switch to Enfold parent theme, then it does not display the double post name anymore, but it shows > HOME / SUBCATEGORY / POSTNAME instead. But I need to show > HOME / CATEGORY / SUBCATEGORY / POSTNAME.

    Hope this info helps.

    Kind regards and have a great day!
    Sophie

    • This reply was modified 7 years, 3 months ago by Sophie.
    #845576

    Hi,

    Do you have any other breadcrumb filter in the functions.php file? I would like to check it but the Appearance > Editor panel is missing. One of the parent and sub category of the post should be included in the breadcrumbs by default without any of those modifications but there should be no duplicate post name.

    Best regards,
    Ismael

    #846795

    Hi Imsael,

    no, I dot not have any other breadcrumb filter in functions.php and also no plugin or anything else.

    Kind regards
    Sophie

    #847538

    Hi,

    Please enable the Appearance > Editor panel or post the FTP details here.

    Best regards,
    Ismael

    #847834

    Hi Ismael,

    please kindly find the WP and FTP details in private content. Thank you for all your efforts in advance.

    Kind regards
    Sophie

    #848919

    Hi,

    Thank you for the update. However, the FTP login credentials are not working. Please check it carefully and provide the FTP url as well.

    Best regards,
    Ismael

    #848951

    Hi Ismael,

    strange :-( . I created new FTP credentials, please find them in private content box. Hope it woks now. Thank you for your help in advance.

    Kind regards
    Sophie

    #849466

    Hi,

    We set the “Blog” page as blog and then added the following filter to remove the “Blog” link from the breadcrumb.

    
    add_filter( 'avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod', 50, 2 );
    	function avia_breadcrumbs_trail_mod( $trail, $args ) {
    
    		if ( is_single() ) {
    			unset($trail[1]);
    		}
    		return $trail;
    	}

    Best regards,
    Ismael

    #849546

    Hi Ismael,

    that is awesome! I thank you so much for helping me with this issue! I think you can close this topic now ;-) !

    Have a great day!

    Kind regards
    Sophie

    #849836

    Hi,

    Glad it is working. Let us know if you need anything else. We’ll close the thread now.

    Best regards,
    Ismael

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘In breadcrumbs always showing "Blog"’ is closed to new replies.