Viewing 8 replies - 16 through 23 (of 23 total)
  • Theme Author Tom

    (@edge22)

    So it seems like their widget produces the error, and the solution is not to use the widget? Seems strange.

    You can tell GeneratePress not to provide microdata – perhaps that would be better in this case? If you want to try that, add this PHP to your site:

    add_filter( 'generate_schema_type', '__return_false' );

    Adding PHP: https://docs.generatepress.com/article/adding-php/

    Thread Starter Endless Hair Extensions

    (@endlesshairextensions)

    Great! Do I add your code to the themes editor ( it seems to be in php)? If GeneratePress does not provide the microdata, does Yoast do it? Or Do I need to install a schema markup WP plugin?

    Theme Author Tom

    (@edge22)

    I would use one of the methods here to add it: https://docs.generatepress.com/article/adding-php/

    Yoast can do it now, however you may end up with a similar issue with the Elementor widget.

    Thread Starter Endless Hair Extensions

    (@endlesshairextensions)

    ok, then I’m going around in circles? Is it possible to have schema markup on my website with WP/GeneratePress and Elementor????

    Theme Author Tom

    (@edge22)

    I think the issue is coming from Elementor on this one. No matter what schema you use (GP, Yoast, another plugin), if the schema that Elementor is adding doesn’t have the correct itemtype surrounding it, you’re going to run into this error.

    You can try something like Yoast – perhaps it will work better? Worth a try for sure.

    Thread Starter Endless Hair Extensions

    (@endlesshairextensions)

    Thank you for your reply!
    So if I add your code to tell GP not to use Schema, how do I tell elementor not to use schema or do I have to remove the review widget? So that I can use sole Yoast for Schema…
    ?
    I’m confused:(

    Thread Starter Endless Hair Extensions

    (@endlesshairextensions)

    So I’m thinking that I need a snippet of code to tell Elementor not to supply the schema markup?

    Theme Author Tom

    (@edge22)

    That would be ideal if it’s possible. Then you could keep the GP schema if you want.

Viewing 8 replies - 16 through 23 (of 23 total)

The topic ‘schema markup error’ is closed to new replies.