Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support jaysupport

    (@jaysupport)

    Hi splink,

    Sorry for the delayed response. Without knowing what changes AMP is making to the page, I’m not sure how to tell why the structured data isn’t being included. The structured data is automatically included for all FAQs by default. So, if it’s no longer there in the code, then it’s being removed by something. What is the AMP supposed to do? Is it possible to ask them if they’ve ever heard of their plugin removing code from other plugins?

    Thread Starter splink

    (@splink)

    I have an AMP plugin to create it so, How do you create the “estructured data” in head tag? is there any function or shortcode that i can use to create it automatically? I would help me a lot…thanks

    Plugin Support jaysupport

    (@jaysupport)

    Hi splink,

    We include the structured data in the newer LD-JSON formatting, so it’s all included in one block. It’s included before the closing </body> tag, not in the head tag. The script tag has a class name of “ewd-ufaq-ld-json-data”, so you can do a search for that on your non-amp page to find it.

    The code that includes the structured data is output via the EWD_UFAQ_Print_JSON_LD_Schema function in the DisplayFAQs.php file (in the Shortcodes folder). And, if you do a search for “$ewd_ufaq_schema_data” in that same file, you’ll see the different instances where the schema is created. Hopefully that gives you the info you need to be able to include it in your setup.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Structured data in AMP’ is closed to new replies.