XF 2.2 How to include FAQ schema?


Well-known member

We use articles to explain things to users.
This is maintained by us as well as some users.
These articles are all in a sub forum.
I spent several hours today trying to include a FAQ schema in an article.

The script needed:
<script type=application/ld+json>{
 "@context": "https://schema.org",
 "@type": "FAQPage",
 "mainEntity": [
   "@type": "Question",
   "name": "Question 1",
   "acceptedAnswer": {
    "@type": "Answer",
    "text": "Answer 1"
   "@type": "Question",
   "name": "Question 2",
   "acceptedAnswer": {
    "@type": "Answer",
    "text": "Answer 2"
} </script>

needs to be included in the head of the page. I just can't get it to work. The problem is of course also that each article must have its own or on the article adapted script.
I have also tried with a widget that does not work either.

In case you don't know what I mean. You can read more about it here.

Maybe someone has an idea?
Top Bottom