Skip to main content

FaqPage Type

Often you see these Accordions for single search hits on search engines, in the background someone worked here with structured content and the @type "FaqPage" - You can find more about this in this Google Developer article: https://developers.google.com/search/docs/data-types/faqpage

WidgetsBox can help you to generate this function for your FAQ module as well. Open the module settings of your WidgetsBox module instance and navigate to the tab "Structured Content". Here you activate the support for Structured Content and select FAQ as type.

struct content faq

The widget box now creates a rich content entry in the header of this page for each article that is displayed within the module. This is read by search engines and processed accordingly. The FAQ type automatically uses the title of your article as a question and the text area as an answer. It does not matter what kind of widget you use. Therefore, a note: Google clearly defines that the structured content as such should also be found on the website. It can be assumed that if you use a grid, for example, you should also display the text content to "satisfy Google" - this is not an explicit statement, but a logical conclusion.

Example generated code

(object) array(
   '@context' =>; 'https://schema.org',
   '@type' =>; 'FAQPage',
   'name' => 'Frequently Asked Questions',
   'creator' => 
  (object) array(
     '@type' =>; 'Person',
     'name' => 'Marco Rensch',
  ),
   'mainEntity' => 
  array (
    0 => 
    (object) array(
       '@type' =>; 'Question',
       'name' => 'Where is the Lord of the Rings set?',
       'acceptedAnswer' => 
      (object) array(
         '@type' =>; 'Answer',
         'text' => 'The setting of The Lord of the Rings is Middle Earth, an alternate world.',
      ),
    ),
    1 => 
    (object) array(
       '@type' =>; 'Question',
       'name' => 'What does 42 mean in the meaning of life?',
       'acceptedAnswer' => 
      (object) array(
         '@type' =>; 'Answer',
         'text' => 'In The Hitchhiker's Guide to the Galaxy, advanced alien beings create a supercomputer, called Deep Thought, to figure out the answer to the so-called Ultimate Question of Life, the Universe, and Everything. After calculating for 7.5-million years, Deep Thought determined the answer was the number 42.',
      ),
    ),
    2 => 
    (object) array(
       '@type' =>; 'Question',
       'name' => 'How many cantons does switzerland have?',
       'acceptedAnswer' => 
      (object) array(
         '@type' =>; 'Answer',
         'text' => 'Switzerland has 26 cantons. Six of them are known as half cantons.',
      ),
    ),
  ),
)