• 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jason Funk

    (@jasonlfunk)

    Try turning off javascript mode. The html in the headline is because while in javascript mode the plugin generates an html tag that is dynamically replaced.

    Thread Starter Smoker2

    (@smoker2)

    I’m using caching with W3 Total Cache, wouldn’t turning javascript off disable the plugin’s functionality?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin Breaks Yoast SEO Schema Code’ is closed to new replies.