Magento 2: How to Add FAQ Rich Snippet - damian-damjanovic-hn/JSON-Schemas GitHub Wiki
Just like any other Google rich snippet, FAQ snippets are enabled by a structured markup FAQPage schema.
If you want the rich snippet to work there should be 2 required properties:
- Main entity: Question
- acceptedAnswer: Answer
Here’s what it looks like when applied:
<html>
<head>
<title>Example Site - Frequently Asked Questions(FAQ)</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [{
"@type": "Question",
"name": "What is the return policy?",
"acceptedAnswer": {
"@type": "Answer",
"text": "<p>You can return the product within 40 days from purchase in case it doesn't fit you, is damaged, or falls under other return policy conditions.</p>"
}
}, {
"@type": "Question",
"name": "Do you ship to my country?",
"acceptedAnswer": {
"@type": "Answer",
"text": "We ship to all countries across Europe and USA. Find the full list of countries on the checkout page."
}
}, {
"@type": "Question",
"name": "How much do you charge for shipping?",
"acceptedAnswer": {
"@type": "Answer",
"text": "<p>Shipping fees depend on your country and vary from $10 to $80 USD. You can get free shipping if you follow our loyalty program for more than 6 months.</p>"
}
}, {
"@type": "Question",
"name": "When will I receive my order?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Delivery usually takes from 3 to 14 days based on the destination country and the delivery method you select on the checkout page."
}
}
</script>
</head>
<body>
</body>
</html>
Following the example above you can easily add FAQ snippet in Magento to the CMS page. But what if you want to add FAQs to product pages, categories or blog posts? It would require significant technical knowledge to apply FAQ structured data.
Instead, you can add it in a few clicks with Magento 2 Rich Snippets Extension.
It enables you to add FAQ schema to any page of your store without diving deep into code. Correspondingly it allows anyone to manage rich snippets from the admin panel.