- This topic has 5 replies, 2 voices, and was last updated 4 years, 6 months ago by Tom.
-
AuthorPosts
-
September 23, 2019 at 5:22 am #1016543pairfum
Dear Tom and the GeneratePress Team,
We have an issue with the implementation of the breadcrumbs in GeneratePress Premium:
– We have implemented Yoast breadcrumbs in our theme per this guideline using ‘hook’ elements for various page types (All Posts, Post Tag, All Archives, Search Results, 404 Template, Blog):
https://docs.generatepress.com/article/adding-breadcrumbs/
– We have enabled Yoast breadcrumbs under Admin > SEO > Search Appearance > Breadcrumbs (tab)Unfortunately, in Google’s Search Console under the tab ‘breadcrumbs’, we see the following error message:
– Status: error
– Type: Either “name” or “item.name” should be specifiedHere are a few screenshots of what we see in Google’s Search Console:
So that you can quickly see the pages, here are the first few pages:
https://www.pairfum.com/page/9/?attachment_id=ljeuftegjr&v=79cba1185463
https://www.pairfum.com/page/25/?attachment_id=tzccvwjylentsqfw&v=79cba1185463
https://www.pairfum.com/page/18/?attachment_id=dtonnuusmtqThis seems to be a common problem and we have raised this issue with the Yoast SEO support forum:
https://wordpress.org/support/topic/google-search-console-breadcrumbs-markup-issues/All these problematic pages have a common pattern and they look like archive pages:
– our home page (https://www.pairfum.com) is a static page (Settings > Reading) that we created using the BeaverBuilder plugin and it display only the 3 x most recent posts.
– under Settings > Reading, we do NOT define a posts page. Instead, our blog page (https://www.pairfum.com/blog) is also a page created using the BeaverBuilder plugin.There is something else which surprise us, these 2 URLs load the same content:
– https://www.pairfum.com/page/25/?attachment_id=tzccvwjylentsqfw&v=79cba1185463
– https://www.pairfum.com/british-flower-week-day-four-foliage/page/25/Can you understand how the pages with the breadcrumb errors are being generated and why the default setting in Yoast, i.e. to use the SEO Title for the Breadcrumb Title, does not work on these pages?
The setting seems to work on some pages but not all.
Thank you for your help on this.
Pairfum London
P.S. We submitted the same request in the support forum for the free theme on WordPress but were advised to seek help directly from you:
https://wordpress.org/support/topic/google-search-console-breadcrumbs-markup-issues-in-generatepress/September 23, 2019 at 3:42 pm #1017134TomLead DeveloperLead DeveloperHi there,
I’m not familiar enough with Yoast to know why the default setting isn’t working on those pages, unfortunately. Have you checked with their support, yet? Did they give you any possible reasons?
The theme itself shouldn’t prevent Yoast from outputting the correct links based on their settings.
Let me know 🙂
September 24, 2019 at 1:14 am #1017314pairfumHi Tom,
Many thanks for your reply.
We have asked Yoast support for help on this but they have not yet found a solution.
They are puzzled by the following URLs:
– https://www.pairfum.com/page/25/?attachment_id=tzccvwjylentsqfw&v=79cba1185463
– https://www.pairfum.com/british-flower-week-day-four-foliage/page/25/Both URLs load the same content.
These are their questions:
– what creates the first URL? What is the difference?
– why are the breadcrumbs visible on the 2nd url but not on the 1st?Here is the URL of my support request from Yoast on WordPress.org:
https://wordpress.org/support/topic/google-search-console-breadcrumbs-markup-issues/Many thanks for your help.
Kind regards,
Pairfum.com
September 24, 2019 at 9:30 am #1017820TomLead DeveloperLead DeveloperI’m not sure where those URLs are coming from. The second one is weird, as all the pages are the same as the first page. WordPress shouldn’t be doing that by default.
Maybe one of your plugins is creating those URLs? Any custom functions?
September 24, 2019 at 10:12 am #1017872pairfumHi Tom,
Many thanks for your reply.
I had expected that GeneratePress creates these pages.
Looking at our plugins and there is not an obvious one that looks like it might be creating pages.
We do, however, have a variety of custom functions for WooCommerce, Login Page, etc but there there is one that could be the culprit:
//* Add Categories & Tags to Pages
//* Source: https://stackoverflow.com/questions/14323582/wordpress-how-to-add-categories-and-tags-on-pages
function myplugin_settings() {
//* Add tag metabox to page
register_taxonomy_for_object_type(‘post_tag’, ‘page’);
//* Add category metabox to page
register_taxonomy_for_object_type(‘category’, ‘page’);
//* Add woocommerce product category metabox to page
register_taxonomy_for_object_type(‘product_cat’, ‘page’);
}
//* Add to the admin_init hook of your theme functions.php file
add_action( ‘init’, ‘myplugin_settings’ );
//* END Add Categories & Tags to PagesI will create a staging site and remove this function to see what happens.
Kind regards,
Pairfum London
September 24, 2019 at 4:44 pm #1018154TomLead DeveloperLead DeveloperThe theme itself doesn’t have the capability to create pages for you.
It looks like WordPress won’t redirect pages that add
/page/xx
to the URL, it will just load the page as if the/page/xx
part doesn’t exist.Perhaps those pages are in your sitemap and need to be removed?
-
AuthorPosts
- You must be logged in to reply to this topic.