-
AuthorPosts
-
October 12, 2019 at 2:31 am #1147291
Hi there,
I have been trying to work out why my WooCommerce pages do not output the breadcrumb microdata that WooCommerce includes by default. Google has recently made changes that make correct Breadcrumb schema very important. It turns out Enfold is blocking them for some reason, in enfold/config-woocommerce/config.php:
line 273: remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
Are you able to shed any light as to why this is removed and please look to fix this in the next Enfold release?
Thanks,
JasonOctober 13, 2019 at 10:24 am #1147539Hey Jason,
You can add this action back by adding it to the functions.php file if you need:
add_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
Best regards,
VictoriaOctober 13, 2019 at 12:01 pm #1147569Thanks Victoria,
This adds a duplicate breadcrumb in the wrong place.
Is it possible to get a proper fix where we get the breadcrumb schema and a single correct breadcrumb?
Due to Google pushing breadcrumb schema this is going to become a hot SEO issue.
Thanks,
JasonOctober 15, 2019 at 9:00 pm #1148203Hi,
When you add this, you need to remove the existing breadcrump.
Are you doing this with Yoast SEO for example?Best regards,
BasilisOctober 16, 2019 at 9:56 am #1148356Hey Basilis,
There are two things at play here:
– the breadcrumb
– the breadcrumb schema data injected by WoocommerceBecause Enfold disables the stock Woocommerce breadcrumb to insert it’s own, it also inadvertently disables the schema data. If I use the snippet above I get the breadcrumb data but two breadcrumbs on the page.
Hope this clarifies the problem.
JasonOctober 21, 2019 at 9:19 pm #1149975Hi,
You can modify / remove ours and play with any other way you need so u have the proper one ;)
Best regards,
BasilisOctober 21, 2019 at 11:25 pm #1150000Sorry but that link does not have information to resolve this problem, and I’m asking for a permanent fix. Due to the recent increase in importance of breadcrumb microdata (it’s now used in serps) thus should be a no brainer?
Jason
October 23, 2019 at 6:27 pm #1150568Hi Jason,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaOctober 26, 2019 at 9:52 am #1151326I do not allow remote access to my website for privacy and security reasons.
You should be able to reproduce this on a stock install of wooocommerce/enfold.
October 28, 2019 at 10:34 pm #1151922Hi,
We do not see the issue we need access so we can be able to see the problem exactly and how it comes.
Best regards,
BasilisOctober 29, 2019 at 11:46 pm #1152179Check your own demo – https://kriesi.at/themes/enfold-shop/product/casual-collection/
There should be a breadcrumb json-ld tag inserted by WooCommerce.
Cheers,
JasonNovember 1, 2019 at 4:20 pm #1153081Hi,
Thank you for the update.
The Woocommerce breadcrumb is disabled by default because the theme has its own breadcrumb option. If you want to bring the plugins’s breadcrumb back, please follow @victoria‘s suggestion above, then go to the Enfold > Header > Header Layout and set the Header Title and Breadcrumbs to the second or fourth option to disable the default breadcrumb from the theme.
Best regards,
IsmaelNovember 2, 2019 at 12:11 am #1153159I don’t want to disable the theme breadcrumb.
I am suggesting that the theme should not break the Woocommerce JSON-LD breadcrumb.
November 8, 2019 at 4:40 am #1154833Hi,
Sorry for the delay. As suggested above, you can add the following snippet in the functions.php file to bring back the plugin’s breadcrumb option, including the JSON-LD markup.
add_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
Best regards,
IsmaelNovember 9, 2019 at 1:09 am #1155131Again, I said above, this causes double breadcrumb to be inserted.
I am asking for a permanent fix to the plugin. Today Breadcrumb schema is critical for SEO. Enfold should work out of the box.
Jason
November 11, 2019 at 3:57 am #1155459 -
AuthorPosts
- You must be logged in to reply to this topic.