Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I have tried to incorporate schema.org markup for FAQs directly in the HTML of pages and blog posts in my site.
To do this I use the html/code view and just add the code. But when I close the html/code view, work in the WYSIWG editor and then open code view again, or when I save and leave the page and come back to it later, all of the schema markup is gone. Here's an example of the markup.
<div itemscope itemtype="https://schema.org/FAQPage">
<div itemscope itemprop="mainEntity" itemtype="https://schema.org/Question">
<h2 itemprop="name">This is the question</h2>
<div itemscope itemprop="acceptedAnswer" itemtype="https://schema.org/Answer">
<div itemprop="text">
This is the answer to the question.
</div>
</div>
</div>
I've tried using markup done with JSON, and that works. But when I go to edit the page after including JSON markup, the markup disappears and I have to recreate it and save the page to get it back.
I'm using the latest version of the Dawn theme.
Is there a setting or something that I need to tweak to allow for schema markup in pages and posts?
Hey
This could just be a copy paste error, but your missing the closing </div> tag for the FAQPage bit. 🙂
autoBlogger: Seamlessly scheduled, fully automated, AI-powered, and SEO-optimised blogging with FAQs, table of contents and other features! Start your 14-day free trial today!
autoSchema: Fully automated and continuously updated Google structured data, including duplicate data removal. Simple to install – try it now!
Yes - copy/paste error. 😐
This is a strange issue. My app, autoBlogger, generates FAQs and includes all the necessary FAQ schema data, so I know it’s possible.
Have you tried saving the page while still in code view? Also, could you share a link to an example page where you've attempted to add the schema? That might help in troubleshooting the issue.
autoBlogger: Seamlessly scheduled, fully automated, AI-powered, and SEO-optimised blogging with FAQs, table of contents and other features! Start your 14-day free trial today!
autoSchema: Fully automated and continuously updated Google structured data, including duplicate data removal. Simple to install – try it now!
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025