These snippets are examples of how you can modify the Yoast SEO breadcrumb visual output. These snippets will not alter the breadcrumb schema output. Please consult the schema documentation to change the breadcrumb schema: https://developer.yoast.com/features/schema/api#to-add-or-remove-graph-pieces
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
thank you very much for these snippets.
But "$text_to_remove" does not work for text with an "&" in it.
I tried it with (all without blanks, of course):