• Resolved hastibe

    (@hastibe)


    Yoast SEO 15.8 adds breadcrumbs to the schema (the part below) that I need to remove–how can this be done?

    {"@type":"BreadcrumbList","@id":"https://www.[removed]/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"item":{"@type":"WebPage","@id":"https://www.[removed].com/","url":"https://www.[removed].com/","name":"Home"}},{"@type":"ListItem","position":2,"item":{"@type":"WebPage","@id":"https://www.[removed]/","url":"https://www.[removed]/","name":"[removed]"}}]}]}

    Could any guidance be offered? I’m not familiar enough with PHP for this (https://developer.yoast.com/features/schema/api/) to be helpful, unfortunately.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter hastibe

    (@hastibe)

    …Though I can add that I am comfortable with trying out (and doing my best to experiment with) code snippets via my staging site’s child theme’s functions.php file.

    I just need some code snippet examples of how to remove breadcrumbs from the schema output.

    Suwash

    (@suascat_wp)

    @hastibe

    Unfortunately, there’s no inbuilt setting in Yoast SEO to enable/disable the schema output. This means, at the moment it is only possible via available PHP filter as reference https://developer.yoast.com/features/schema/api/#change-a-graph-pieces-data.

    Thread Starter hastibe

    (@hastibe)

    Hmm, that makes it trickier, doesn’t it!

    So, @suascat_wp, I see that in the page section you linked to says “If you want to change the output of a certain piece, hook into our wpseo_schema_<class> filter.” Where can I access documentation about this filter and what the different <class> are?

    Additionally, in the example given, it targets $data['@type'], but I have multiple @type entries being added (five times, in just the piece of code I included in my first post)–how do you target the correct @type? The documentation doesn’t seem to be clear about this, and that would also be very helpful to know.

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi,

    We can only provide what is currently in the documentation. You might want to refer to your web developer for further assistance. Also, we’ve considered your feedback to provide a specific example on how to disable the breadcrumb schema using the Schema API and let the appropriate team members know about this.

    Thread Starter hastibe

    (@hastibe)

    Also, we’ve considered your feedback to provide a specific example on how to disable the breadcrumb schema using the Schema API and let the appropriate team members know about this.

    Thanks, @mikes41720 — this is appreciated, as I don’t have “your web developer” to refer to, like many of your plugin users, and the end result isn’t that I hire a web developer, it’s that I switch to a different SEO plugin that has this feature or better documentation.

    …Many plugins provide documentation and code snippets that are much more helpful / functional for lay people like myself, than the Schema API, such as WP Job Manager (see here, for instance) and Ultimate Member (see here, for instance), and I highly recommend considering allocating more time to this, as it will make your plugin a more useful (and thus more valuable) product to most WordPress users.

    Hi @hastibe,

    We completely understand about offering a specific example for this. We’re getting confirmation from the developer documentation team on the best way to do this.

    Thread Starter hastibe

    (@hastibe)

    @priscillamc — that is really great to hear, as I’ve used Yoast SEO (even done some of your trainings) for years, and I wasn’t sure what to do now. I really appreciate your understanding and follow-up on this, and will wait for an update on this (currently, have rolled back to 15.7).

    Suwash

    (@suascat_wp)

    Thanks for the reply!

    While we do not have an ETA for when our developers will review it or work on any possible fixes, we can only say it is open with them now.

    In the meantime, we suggest signing up for our newsletter as that is where we will announce product changes and updates. You may sign-up for it here https://yoast.com/ by scrolling towards the bottom to complete the sign-up field.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

    Thread Starter hastibe

    (@hastibe)

    @devnihil — no, this isn’t resolved. I’m still waiting for a fix / clarification on your documentation.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    Thanks for following up with us on this topic. You can disable the Yoast SEO specific breadcrumbs schema from the schema graph by following the steps given here. However, we know that using the relevant code snippet isn’t working for you and it turns out a bug that still left a few breadcrumbs pieces in the schema graph.

    So, if you have a spare moment for us, please do feel free to submit a bug report directly at our GitHub development repository so our development team can definitely look into the relevant code snippet and the issue further. It will also help you to communicate with our development team directly.

    Thanks for your understanding!

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. We are going ahead and marking this issue as resolved but please let us know if you require any further assistance.

    Thread Starter hastibe

    (@hastibe)

    @mazedulislamkhan — thanks for pointing out that your developers have added an example to your documentation of how to remove the Breadcrumb piece from being output; that works and is what we’ll use–thank you!

    We’d love to see more examples or step-by-step guides added to your documentation for those less skilled at PHP, too.

    @hastibe I am experiencing the same problem as you.

    The breadcrumbs SCHEMA output from Yoast is a disaster. It makes every post appears “domain.com/Latest Post/” in Google search results for two reasons:
    1. it forces to add post type in the breadcrumbs
    2. You need to enable categories, and any categories tag are appended to the post type, but still Google doesn’t give it a shxx in the SERP.

    This problem only happened a few days ago when I update the plugin.

    When I tried to disable the schema output, I found your support ticket and unhelpful answer from several different developers from Yoast.

    Same here I have been using Yoast for a little more than 1 yr, but I will definitely drop Yoast as their attitude will only make the next update worse.

    Thread Starter hastibe

    (@hastibe)

    @upsangel — changes like this without good support and documentation are frustrating! Yoast did provide a code snippet (here) to disable breadcrumbs, thankfully, though. Just paste the code snippet into your child theme’s functions.php file, or -if you aren’t using a child theme- use the Code Snippets plugin.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘How to Remove Breadcrumbs from Schema output’ is closed to new replies.