Plugin Breaks Yoast SEO Schema Code
-
Hello,
I’m using the latest version of Title Experiments (v 9.0) and I’m having a problem making it work properly with the Yoast SEO plugin.
Yoast’s plugin injects a JSON-LD Schema code automatically into every page, and in that code is the headline property that contains the title of the page.
However, things get messy when both plugins work simultaneously, and the headline attribute spits an HTML code instead of the title.
This creates a Schema error which typically looks like this:
"headline":"<span data-wpex-title-id='1364' style='min-height: 1em; display: inline-block;' data-original='VmVydCBTaG9jayBSZXZpZXcg4oCTIERvZXMgSXQgUmVhbGx5IFdvcms/IEZVTEwgUHJvZ3JhbSBCcmVha2Rvd24=' ></span>"
Here’s how a proper headline attribute should look like:
"headline":"This Is an Example Title"
And BTW, this only happens when manually specifying a title that is different from the H1. When H1 and Title are the same (title field in Yoast SEO left blank), everything works smoothly.
Any recommendation on how to fix this issue?
- The topic ‘Plugin Breaks Yoast SEO Schema Code’ is closed to new replies.