Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1353937

    Dear Enfold Team,

    We use the Accordeon Element on our Site (see Private Content) for FAQ.
    We have 7 diffrent Categories for FAQ’s, so we used this Element 7 times.
    On each element we turned on the FAQ Page Schema.
    Now Google Search Console reported the problem, that the Tag “FAQPage” is used multiple times on this page, which is not allowed.
    You can see that it in the Source code of the website.
    I noticed that it says only use the FAQPage on one Element on each page. But then the other Elements get the Tag “CreativeWork” which does not support FAQ direct in the Google Search results.

    Other Plugins like Yoast SEO, which has a FAQ Element, renders/combine them in one FAQPage Tag even if you have multiple FAQ Elements on one Page. You can read about it here: https://github.com/Yoast/wordpress-seo/issues/14429

    Is it possible that you can this too?

    Thanks for your help,
    Greetings Jannis

    #1354150

    Hey Jannis95,

    If you have a staging site can you try the following fix please:

    In file enfold\config-templatebuilder\avia-shortcodes\toggles\toggles.php around line 1133 you find:

    
    			$markup_faq = '';
    			if( ! empty( $atts['faq_markup'] ) )
    			{
    				$markup_faq = avia_markup_helper( array( 'context' => 'faq_section', 'echo' => false ) );
    			}
    

    After this please add:

    
    			static $markup_count = 1;
    
    			if( $markup_count > 1 )
    			{
    				$markup_faq = '';
    			}
    
    			$markup_count++;
    

    If you need help please let us know and we can do it for you. Do not forget to make a backup of the original file for a fallback.

    Let us know if it worked.

    Best regards,
    Günter

    #1354560

    Hi, thanks for the replay.

    If the final code should like this:

    $markup_faq = '';
    			if( ! empty( $atts['faq_markup'] ) )
    			{
    				$markup_faq = avia_markup_helper( array( 'context' => 'faq_section', 'echo' => false ) );
    			}
    
    			static $markup_count = 1;
    
    			if( $markup_count > 1 )
    			{
    				$markup_faq = '';
    			}
    
    			$markup_count++;

    Then it didnt work. The hole page crashed with a critial wordpress error…

    #1354601

    Hi,

    Sorry for that.

    A modified fix is integrated in the latest release 5.0 published yesterday.
    Can you check with this version if the problem is fixed please.

    Best regards,
    Günter

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.