• Resolved andysweet

    (@andysweet)


    Hi,

    I have an issue with Google Search Console flagging my site’s pages for a missing field “itemListElement”. When I looked into it I realised that AIOSEO is including the following type of links in my pages’ headers despite me having the breadcrumbs option switched off:

    “breadcrumb”:{“@id”:”https:\/\/www.stravaiging.com\/history\/castle\/rossend-castle\/#breadcrumblist”}},

    Google is then looking for the #breadcrumblist element and not finding it. Am I doing something wrong, or is there a way to stope AIOSEO from generating that line of code so that I stop receiving the errors on Google? Thanks.

    Cheers
    Andy

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support MM Aurangajeb

    (@aurangajeb)

    Hi @andysweet,

    Thanks for reaching out!

    despite me having the breadcrumbs option switched off:

    Could you please explain how you turned this off?

    I’d like to help you resolve the issue with the Breadcrumb option. Upon inspecting your page and URL (https://www.stravaiging.com/history/castle/rossend-castle/), I noticed that you have a BreadcrumbList schema that is not from our AIOSEO plugin, as shown here: https://a.supportally.com/i/6qkdhR.

    Could you please confirm if this Breadcrumb setup is coming from your theme’s options?

    To further assist you, could you provide a screencast or screenshot of your Breadcrumb setup for this page? You can use tools like Loom (https://www.loom.com/screen-recorder) or Snipboard (https://snipboard.io/) to create and share the screencast/screenshots.

    This will help me investigate the issue with the Missing field “itemListElement” in Google Rich Result: https://search.google.com/test/rich-results/result?id=6R-X2UNmN14Euv7sOcY2Rw.

    I’ve also noticed that this issue doesn’t occur on your other page (https://www.stravaiging.com/culture/music/bands/), which has a different Google Rich Result report: https://search.google.com/test/rich-results/result?id=7uvF4h9tqmPNygeAKaC9Vg.

    I’m looking forward to helping you resolve this issue!

    Thread Starter andysweet

    (@andysweet)

    Hi @aurangajeb,

    Thanks very much for your reply. When I said that the breadcrumbs option was turned off I meant in AIOSEO’s General Settings in WordPress I have “Enable Breadcrumbs” switched off. I think I may have misunderstood what this means though – is it that it means it isn’t generating the breadcrumbs structure on the page but it is still adding the BreadcrumbList schema?

    I should also have said that I was testing adding the BreadcrumbList schema manually to the castle pages myself, so that it what you are seeing on the Rossend Castle page. These castle pages are created dynamically with the Pods plugin using Advanced Content Types.

    The bands page is a regular WordPress page, so I now realise that this is probably an issue with how AIOSEO deals with Advanced Content Type pages vs. regular WordPress pages. Despite the code for the breadcrumbs being the same on both types of pages AIOSEO doesn’t seem to be applying the BreadcrumbList schema correctly on the Advanced Content Type pages.

    The breadcrumbs structure is different on the Advanced Content Type and regular WordPress pages. On the regular WordPress pages I use some code to automatically generate the breadcrumbs based on the url, but on the Advanced Content Type pages the breadcrumbs are hard-coded manually (because each Advanced Content Type page has its own template and because I seem to remember years ago having an issue with working with the url on Advanced Content Type pages).

    The current breadcrumbs code on my castles pages (including the original breadcrumbs structure and also my new structure with the schema added manually):

    https://pastebin.com/WtceT92g

    The current breadcrumbs code on the bands page:

    https://pastebin.com/EKQdyZQe

    Cheers
    Andy

    Plugin Support MM Aurangajeb

    (@aurangajeb)

    Hi @andysweet,

    Thank you for your follow-up!

    I wanted to let you know that the Enable Breadcrumbs option should not be present on the AIOSEO > General Settings > Breadcrumbs page, as it has been deprecated.

    As shown here: https://a.supportally.com/i/z7dN2C

    By default AIOSEO will automatically add breadcrumbs to the schema markup that we add to your site and you don’t need to make any changes for that to work.

    Initially, I attempted to reproduce the issue using the Pods – Custom Content Types and Fields plugin with a CPT and a post. However, the output was fine, including the BreadcrumbList schema: https://a.supportally.com/v/Ecyol6.

    Since you’ve shared your codebase for breadcrumbs, I’ll review it further, and I may need to consult with our Development team as well. I’ll get back to you with updates as soon as possible.

    Thank you!

    Thread Starter andysweet

    (@andysweet)

    Hi @aurangajeb,

    Thanks for testing that. I would be interested if you find anything as I can’t see anything in my code that is stopping it from working.

    I think you might be using some kind of different custom post to me though as your WordPress interface looks different to mine (I don’t have Author, Categories or Comments sections). I’m using Advanced Content Types not Custom Post Types.

    Here’s a screenshot showing that the “Enable Breadcrumbs” option is still in my Settings for AIOSEO:

    Cheers
    Andy

    Plugin Support MM Aurangajeb

    (@aurangajeb)

    Hi @andysweet,

    Thank you for your follow-up!

    Since you’re manually adding a custom schema using RDFa and JSON-LD schema still exists on the page, I recommend using a filter to remove the breadcrumb elements from the AIOSEO schema output. Here’s how you can do it:

    function override_aioseo_breadcrumbs_output( $data ) {
    // Add some custom logic here if needed
    // For example, if this is page Y and we are not customizing the breadcrumb, we can return the original data
    return array_map(function( $item ) {
    if ( is_array( $item ) && isset( $item['breadcrumb'] ) ) {
    unset( $item['breadcrumb'] );
    }

    return $item;
    }, $data);
    }

    add_filter( 'aioseo_schema_output', 'override_aioseo_breadcrumbs_output' );

    This snippet will remove the breadcrumb item from the WebPage schema, potentially resolving the “Missing field ‘itemListElement'” issue in Google Search Console.

    You can add the code to your site using a plugin such as WPCode (https://ww.wp.xz.cn/plugins/insert-headers-and-footers/); we have an article on how to do so here: https://aioseo.com/how-to-use-the-wpcode-snippet-library.

    Regarding the “Enable Breadcrumbs” option, this should not appear in your settings since you’re using version 4.8.1.1 (https://a.supportally.com/i/nSqONG), where this option has been deprecated.

    As mentioned earlier, AIOSEO automatically adds breadcrumbs to the schema markup without requiring additional changes. So you shouldn’t worry about it.

    Since this is present, you can enable the option to utilize the Breadcrumb Settings.

    However, if you want us to look into this further, please contact us using our Basic Question form here: https://aioseo.com/contact/. We’d be happy to help.

    I hope this helps. Please let me know if you have any other questions, and I’d be happy to help!

    Thanks.

    Thread Starter andysweet

    (@andysweet)

    Hi @aurangajeb,

    Thanks for the code suggestion. I tried adding it however the #breadcrumblist element is still being added to the url in the headers and still causing the Google Search Console Error. E.g.:

    https://search.google.com/test/rich-results/result?id=pPBUIwyZpiHBYAoxNd82Og

    Cheers
    Andy

    Plugin Support MM Aurangajeb

    (@aurangajeb)

    Hi @andysweet ,

    Thank you for your follow-up!

    Could you please tell me how you added the code snippet to your website? If possible, please provide a screenshot or screencast of the setup so I can take a look. You may use a tool like https://snipboard.io/ or https://www.loom.com/screen-recorder to create and share the screenshot/screencasts.

    I checked and can still see the “breadcrumb” item in your page source- https://a.supportally.com/i/nzQFfP. It should not be present after implementing the code snippet I provided.

    I look forward to hearing from you!

    Thread Starter andysweet

    (@andysweet)

    Hi @aurangajeb,

    I tried implementing it manually initially (adding the code to the theme’s functions file then calling the filter in the template) as I didn’t really want to install another plugin and was also concerned about the effect on the pages that are not Advanced Content Types.

    However I have now implemented it as you described using WPCode and it is working. Thanks for all your help!

    Cheers
    Andy

    Plugin Support MM Aurangajeb

    (@aurangajeb)

    Hi @andysweet,

    Thank you for the update!

    I’m glad to hear that implementing it with WPCode has worked for you.

    Have a great one!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Issue with breadcrumblist in Google Search Console’ is closed to new replies.