Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #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,
    Franziska

    #1299275

    Hey 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,
    Ismael

    #1299342

    Hi 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,
    Franziska

    #1299464

    Hi 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

    #1299465

    Hi 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

    #1299582

    Hi 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

    #1299628

    Hi,

    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,
    Ismael

    #1299727

    Hi 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, 7 months ago by swisstraveler.
    #1299968

    Hi 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, 7 months ago by swisstraveler.
    #1300111

    Hi,

    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,
    Ismael

    #1300141

    Hi 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

    #1300723

    Hi,

    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,
    Ismael

    #1300767

    Hi 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, 7 months ago by swisstraveler.
    #1301092

    Hi,

    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,
    Ismael

    #1301221

    I 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…

    #1301225

    Hi 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, 7 months ago by swisstraveler.
    #1301239

    The 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. :-(

    #1301535

    Hi,

    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,
    Ismael

    #1301638

    Hi 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

    #1302277

    Hi,

    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

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Breadcrumb issue’ is closed to new replies.