• Resolved djwilko12

    (@djwilko12)


    Hello,

    We have a site that hides the prices for non-logged in users. The issue we are having is that google is indexing the prices on the serp because Yoast is generating the offer schema.

    How to do to avoid the output of the offer schema? At least avoid the schema related with the price.

    Waiting for a solution ASAP.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @djwilko12

    Thanks for reaching out about your site schema. Though the Yoast SEO plugin output a lot of graph pieces on some pages, you might want to remove some, or better yet, add your own. To do this you should use the?wpseo_schema_graph_pieces?filter. You can find more information here.

    Thread Starter djwilko12

    (@djwilko12)

    Thanks @maybellyne

    Please tell me exactly what would be the filter to disable schema related to offers. On the doc provided, doesnt mention that example

    Plugin Support Maybellyne

    (@maybellyne)

    Use the?wpseo_schema_graph_pieces?filter, and typically code snippets are added to your theme’s functions.php file. If you’re unfamiliar with using code snippets, we’d like to refer you to the WordPress documentation on how to use a filter

    • This reply was modified 1 year, 8 months ago by Maybellyne.
    Thread Starter djwilko12

    (@djwilko12)

    Hi @maybellyne

    I know how to add a snippet, that was not the question. The question was, what is the snippet i should add to disable offer output generated by Yoast. Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Avoid offer schema output’ is closed to new replies.