The necessary script can be added to individual pages or blog posts to enrich your FAQ data for SEO
We're working on a solution to integrate the necessary schema into the Accordion module, but sometimes you'll have Questions and Answers that qualify as FAQ that aren't contained in the Accordion module, such as in a blog post.
Here is the script you can use to build your Schema:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "INSERT QUESTION TEXT HERE",
"acceptedAnswer": {
"@type": "Answer",
"text": "INSERT ANSWER TEXT HERE"
}
}, {
"@type": "Question",
"name": "INSERT QUESTION TEXT HERE",
"acceptedAnswer": {
"@type": "Answer",
"text": "INSERT ANSWER TEXT HERE"
}
}, {
"@type": "Question",
"name": "INSERT QUESTION TEXT HERE",
"acceptedAnswer": {
"@type": "Answer",
"text": "INSERT ANSWER TEXT HERE"
}
}, {
"@type": "Question",
"name": "INSERT QUESTION TEXT HERE",
"acceptedAnswer": {
"@type": "Answer",
"text": "INSERT ANSWER TEXT HERE"
}
}, {
"@type": "Question",
"name": "INSERT QUESTION TEXT HERE",
"acceptedAnswer": {
"@type": "Answer",
"text":"INSERT ANSWER TEXT HERE"}
}]
}
</script>
When modifying the script to add your questions and answers, make sure to only change the INSERT QUESTION TEXT HERE and the INSERT ANSWER TEXT HERE leaving all of the quotes, punctuation, and brackets as-is.
If you need to add or remove questions, be careful with the commas and brackets to ensure you don't create a syntax error.
You can add this individually per page via the Page Head HTML or to blog posts via the Blog Header HTML.