-
AuthorPosts
-
May 7, 2021 at 4:56 pm #1298999
Hi,
Google Search Console informed me of following error: Either “name” or “item.name” should be specified. As I do not use (Yoast SEO) breadcrumbs, something else on my site caused it, may it have something to do with the Enfold theme?
Please advise. Thanks!
Best regards,
FranziskaMay 10, 2021 at 6:35 am #1299275Hey swisstraveler,
Thank you for the inquiry.
Would you mind providing a screenshot of the issue? We found no breadcrumb element in the site, so the error should not be occurring in the console. Did you try to run the validation process?
// https://support.google.com/webmasters/answer/9216203?hl=en#zippy=%2Cabout-validation
Best regards,
IsmaelMay 10, 2021 at 12:15 pm #1299342Hi Ismael
Thanks for your answer. No, I have not started the validation process (as the issue is not fixed). Yoast support tells me that there are issues with my website. Find the text below.
I also included a screenshot of the issue below.
Thanks for your help.
Best regards,
FranziskaMay 10, 2021 at 6:01 pm #1299464Hi Ismael
Yoast Support wants to know more about the avia element that caused the issue on Google Search Machine (see private content). Could you please advise.
Thanks and best regards,
Franziska
May 10, 2021 at 6:04 pm #1299465Hi Ismael
Yoast Support wants to know more about the avia element that caused the issue on Google Search Machine (see private content). Could you please advise.
Thanks and best regards,
Franziska
May 11, 2021 at 7:22 am #1299582Hi Ismael
I have now the report from Yoast Support because of the Breadcrumb issue with the Google Search Console, see private content. What do you suggest? Please inform me if you need access to my website (email address?).
Thanks and best regards,
Franziska
May 11, 2021 at 10:14 am #1299628Hi,
Would you mind providing a screenshot of Google Console issue again? The image URL above is malformed. Please use imgur or dropbox for the screenshot.
Could you ask the plugin developers if this is where issue lies? It’s part of the Yoast JSON-LD schema.
{"@type":"BreadcrumbList","@id":"https://swisstraveler.net/swiss-traveler-luxury-travel-gourmet-blog/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"https://swisstraveler.net/swiss-traveler-luxury-travel-gourmet-blog/#webpage"}}]}]}
We noticed that the position value of the ListItem stays to 1 even when we navigate to a different page. The plugin probably extracts the position value using the get_query_var(“page”) function or it parses the URL and return the pagination component. Please ask the authors if there is an available filter that we could use to manipulate the value of the itemListElement inside the BreadcrumbList.
// https://developer.yoast.com/features/schema/pieces/breadcrumb/
Best regards,
IsmaelMay 11, 2021 at 4:38 pm #1299727Hi Ismael,
Thanks for your answer. Find below the desired screenshot – per imgur – again.
I sent your answer to the plugin developers and inform you as soon as I have a reply from them.
Best regards,
Franziska
Screenshot Google Search Console notice
- This reply was modified 3 years, 6 months ago by swisstraveler.
May 12, 2021 at 5:25 pm #1299968Hi Ismael,
Find under Private Content what Yoast support let me know.
Do you a solution for the issue?
Thanks and best regards,
Franziska
- This reply was modified 3 years, 6 months ago by swisstraveler.
May 13, 2021 at 11:22 am #1300111Hi,
Looks like the breadcrumb is generated using the function generate_breadcrumbs but we are not yet sure how the context is generated. We might be able to filter the value of the context before passing it to the breadcrumb schema generator.
plugins\wordpress-seo\src\presentations\indexable-presentation.php > line 664
/** * Generates the breadcrumbs for the page. * * @return array The breadcrumbs. * * @codeCoverageIgnore Wrapper method. */ public function generate_breadcrumbs() { return $this->breadcrumbs_generator->generate( $this->context ); }
Best regards,
IsmaelMay 13, 2021 at 1:32 pm #1300141Hi Ismael,
Thank you for your reply.
In the meantime, Yoast support asked their technical support to deal with this matter. They gave me the answer you see under Private Content.
Do I get it right that you can now provide a filter (your last message) to remove the breadcrumb schema from the source code when the blog page is referenced? If yes, how should we proceed further?
Thanks and best regards,
Franziska
May 17, 2021 at 1:09 pm #1300723Hi,
Do I get it right that you can now provide a filter
No, the code above is the function that generates the breadcrumb schema. We cannot find any filter, or we are not sure how Yoast generates the context. Have you tried selecting a page as blog as they recommended above?
Best regards,
IsmaelMay 17, 2021 at 3:45 pm #1300767Hi Ismael,
Thanks for your message.
Yoast suggested as one option to create & select a page to be treated as the blog page. I assume you mean this point. Unfortunately, I am not sure whether I fully understand this. I have a page – the homepage – where there is also the module “Blog Posts”. And I have under Settings-Reading not a “Static Page” but “Your Latest Posts” (see screenshot under “Private Content”). Now what should I change, exactly? So much is clear, I do not want to have 2 pages, one with the homepage (without blog posts) & another with the blog posts only. All should be on the homepage only.
Could you enlighten me, please, and indicate how to proceed further.
Thanks and best regards,
Franziska
- This reply was modified 3 years, 6 months ago by swisstraveler.
May 19, 2021 at 3:26 am #1301092Hi,
Thank you for the inquiry.
Try to select the current home page as homepage in the Settings > Reading panel, and create another page and set it as posts page.
We tested the link with each parameter and found that the m=0 parameter causes the incomplete breadcrumb schema.
The query var avia-element-paging=25 is created by the theme for the pagination, but we have no idea where m=0 is coming from. It might be from another plugin. And according to Yoast this variable is causing the issue.
Best regards,
IsmaelMay 19, 2021 at 4:06 pm #1301221I know I shouldn’t jump in on someone else’s thread but @swisstraveler’s issue is the same as mine here: https://kriesi.at/support/topic/search-console-has-identified-that-your-site-is-affected-by-2-breadcrumbs-issues/ – which as you can see @Rikard had to leave unresolved.
My site is today reporting 4 pages with both ‘Either “name” or “item.name” should be specified’ and ‘Missing field “id”‘ errors.
There is something going on here…
May 19, 2021 at 4:33 pm #1301225Hi Zimbo,
I had a look at your issue and yes, it looks similar.
Yoast checked it also and they gave me following analysis:
“After reviewing your past conversations, we see the breadcrumb schema is incomplete in certain scenarios. We know how disappointing it is when something doesn’t work. Let’s get this problem sorted for you.The incomplete breadcrumb schema on the example link you provided, https://123?m=0&avia-element-paging=25, contains two parameters. We tested the link with each parameter and found that the m=0 parameter causes the incomplete breadcrumb schema.
After reviewing you site, we were able to reproduce the issue in our local environment. The incomplete breadcrumb schema is caused by having a static homepage but not a static blog page. WordPress allows you to choose static pages under Admin > Settings > Reading which you are not utilizing. Instead, you are using the Enfold theme option to set a static frontpage but did not select a blog page.
To resolve the issue, you have two options:
Create and select a page to be treated as the blog page
Add custom code to remove the breadcrumb schema from the source code when the blog page is referenced. An example of how to do this can be found here. We, also, have a developer portal where you can find more information about filters and even check out some examples of how to use them. Typically code snippets are added to your theme’s functions.php file. If you’re not familiar with using code snippets, we’d like to refer you to the WordPress documentation on how to use a filter.
If you choose the second option and are not comfortable with implementing filters, we highly recommend checking out Code Poet or Codeable.io for available freelance WordPress developers and Human Made for development & consultancy.”Honestly, I do not know how to proceed further in this matter. Search Console continues tossing error reports. I am bit reluctant to do changes on my website that have been working properly until recently. Maybe just wait it out until updates from the theme or the plugin might change the situation? So far, I have not started the validation process with the Search Console …
Best regards,
Franziska
- This reply was modified 3 years, 6 months ago by swisstraveler.
May 19, 2021 at 5:53 pm #1301239The validation process in Search Console fails on the errors I get. I found similar breadcrumb errors reported on other themes via a Google search and those theme authors acknowledged a problem in their themes and fixed them. But it “appears” Enfold does not know the cause of these errors.
So until the cause of the errors is fixed, we are stuck with. :-(
May 21, 2021 at 7:43 am #1301535Hi,
To resolve the issue, you have two options:
Create and select a page to be treated as the blog page
Add custom code to remove the breadcrumb schema from the source code when the blog page is referenced. An example of how to do this can be found here.Did you follow any of these recommendations? According to them, the issue is caused by not having a static blog page, which creates the m=0 parameter.
Did you try to set a static blog page? You can assign a different page as blog page and it should not affect the posts that displays in your home page, which seems to be what you are concern about. You can always revert it back to the previous settings if the results of the changes are not what you are expecting.
An example of how to do this can be found here.
Would you mind providing the actual link?
Best regards,
IsmaelMay 21, 2021 at 2:18 pm #1301638Hi Ismael
Thanks for your message. I will give the static blog page a try.
Find here the link you wanted to have: example remove breadcrumb schema from the source code when the blog page is referenced
Best regards,
Franziska
May 25, 2021 at 7:53 pm #1302277Hi,
Alright. You can also add the filter that they provided in the link to remove the breadcrumb entry from the schema.
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ /* Remove Yoast breadcrumb from static blog page * Credit: Yoast team * Last Tested: May 12, 2021 using Yoast SEO 16.2 on WordPress 5.7.1 */ add_filter( 'wpseo_schema_webpage', 'remove_breadcrumb_schema_ref', 10, 1); function remove_breadcrumb_schema_ref( $piece ){ if ( !is_front_page() && is_home() ) { unset( $piece['breadcrumb'] ); return $piece; } else return $piece; } add_filter( 'wpseo_schema_graph_pieces', 'remove_breadcrumbs_from_schema', 11, 2 ); function remove_breadcrumbs_from_schema( $pieces, $context ) { if ( !is_front_page() && is_home() ) { return \array_filter( $pieces, function( $piece ) { return ! $piece instanceof \Yoast\WP\SEO\Generators\Schema\Breadcrumb; } ); } else return $pieces; }
Please feel free to open another thread if this continues to be an issue. We will close this one for now.
Have a nice day.
Best regards,
Ismael -
AuthorPosts
- The topic ‘Breadcrumb issue’ is closed to new replies.