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
- This topic has 11 replies, 2 voices, and was last updated 6 years, 11 months ago by Artem Temos.
-
AuthorPosts
-
January 9, 2018 at 10:12 pm #32413
getimoParticipantAs 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.January 10, 2018 at 7:56 am #32448
Artem TemosKeymasterHello,
Could you please check how this option works with default WordPress theme to understand is it our theme related problem?
Thank you in advance.
January 10, 2018 at 9:50 am #32500
getimoParticipantIt 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.January 10, 2018 at 10:07 am #32506
Artem TemosKeymasterSorry, but we don’t have an idea why it doesn’t work.
January 10, 2018 at 10:11 am #32510
getimoParticipantI’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?
January 10, 2018 at 10:32 am #32531
Artem TemosKeymasterYou can edit our
woodmart_breadcrumbs
function in the fileinc/template-tags.php
and place your custom code there. We will consider implementing some option for this in our future updates.January 10, 2018 at 10:38 am #32539
getimoParticipantThank 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 😉
January 10, 2018 at 10:41 am #32546
Artem TemosKeymasterYou can simply copy the whole function to your child theme functions.php file and then edit its content.
January 10, 2018 at 10:55 am #32562
getimoParticipantAfter 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/January 10, 2018 at 11:02 am #32564
Artem TemosKeymasterWooCommerce 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 themewoocommerce/
folder and place your yoast breadcrumb there.January 10, 2018 at 11:58 am #32572
getimoParticipantI’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?
January 10, 2018 at 12:41 pm #32581
Artem TemosKeymasterYou 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. -
AuthorPosts
- You must be logged in to create new topics. Login / Register