Schema markup auto-deleted - Dawn Theme

Schema markup auto-deleted - Dawn Theme

LB2022
Excursionist
27 1 6

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? 

Replies 3 (3)

Olllie
Shopify Partner
121 11 23

Hey

 

This could just be a copy paste error, but your missing the closing </div> tag for the FAQPage bit.  🙂 

Ollie | Founder & Developer of autoBlogger and autoSchema

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!


Discover more at autoBlogger.bot!

LB2022
Excursionist
27 1 6

Yes - copy/paste error. 😐

Olllie
Shopify Partner
121 11 23

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.

Ollie | Founder & Developer of autoBlogger and autoSchema

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!


Discover more at autoBlogger.bot!