Home Forums WoodMart support forum Custom breadcrumb title from yoast ignored by product category pages

Custom breadcrumb title from yoast ignored by product category pages

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #32413

    getimo
    Participant

    As you can see from my screenshot I defined a custom breadcrumb title for the category (Products > Categories > Edit Category). Unfortunately it is not reflected on the frontend.

    Attachments:
    You must be logged in to view attached files.
    #32448

    Artem Temos
    Keymaster

    Hello,

    Could you please check how this option works with default WordPress theme to understand is it our theme related problem?

    Thank you in advance.

    #32500

    getimo
    Participant

    It doesn’t seem theme related. However do you have an idea why this is? Of course I will ask Yoast.

    Thank you!

    Attachments:
    You must be logged in to view attached files.
    #32506

    Artem Temos
    Keymaster

    Sorry, but we don’t have an idea why it doesn’t work.

    #32510

    getimo
    Participant

    I’ve found this code snippet which should be integrated into the theme. Where can I edit that in a safe way?

    https://kb.yoast.com/kb/implement-wordpress-seo-breadcrumbs/

    Do you consider supporting Yoast breadcrumbs in the core in the future?

    #32531

    Artem Temos
    Keymaster

    You can edit our woodmart_breadcrumbs function in the file inc/template-tags.php and place your custom code there. We will consider implementing some option for this in our future updates.

    #32539

    getimo
    Participant

    Thank you very much! How do I make this customization safely?

    Breadcrumbs are the bread and butter of seo so I think it is pretty important for all users – and I think all users are using yoast. Hope you will include it so we don’t have to hack the files and causing even more support time for you 😉

    #32546

    Artem Temos
    Keymaster

    You can simply copy the whole function to your child theme functions.php file and then edit its content.

    #32562

    getimo
    Participant

    After looking at the template-tags.php file I see there that everything is already there but only the posttype of product and product categories is missing. So in “Blog” I can see the microdata markup but on products and product categories there is the usual html markup.

    Could you please add the markup for woocommerce too since it is a woocommerce theme? 🙂

    See your demo:

    With markup: https://woodmart.xtemos.com/blog/2016/07/23/seating-collection-inspiration/
    Without markup: https://woodmart.xtemos.com/shop/lighting/montes-scelerisque/

    #32564

    Artem Temos
    Keymaster

    WooCommerce has its own breadcrumbs and it doesn’t have any markup for SEO. If you want, you can copy the file from plugins/woocommerce/templates/global/breadcrumb.php to your child theme woocommerce/ folder and place your yoast breadcrumb there.

    #32572

    getimo
    Participant

    I’m sorry but I don’t understand.

    The official documentation talks only about functions.php editing not overriding template files: https://docs.woocommerce.com/document/customise-the-woocommerce-breadcrumb/

    Is possible without template modifications?

    Where am I suppose to put the breadcrumb.php in the child theme directory? Into the root?

    #32581

    Artem Temos
    Keymaster

    You can customize it as written in the documentation or you can do as we said and replace it completely with Yoast breadcrumbs function as you wanted initially.

    You need to copy this file to the chile theme woodmart-child/woocommerce/global/ folder.

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