Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1486317

    Setting the footer as a page, in the html structure, the <main> tag is duplicated leading to seo and accessibility problems. How to solve?

    #1486384

    Hey idemadv,

    Thank you for the inquiry.

    This can be adjusted, but you’ll need to modify the file at themes/enfold/config-templatebuilder/avia-shortcodes/section/section.php. Look for the code around line 1883 and replace main with div or section.

    if( ! empty( $main_container ) )
    				{
    					$markup = 'main ' . avia_markup_helper( array( 'context' => 'content', 'echo' => false, 'custom_markup' => $custom_markup ) );
    					$avia_section_markup = 'main';
    				}
    

    Another option is to create a custom script that dynamically switches the main wrapper to another element or tag.

    https://stackoverflow.com/questions/918792/use-jquery-to-change-an-html-tag/20469901#20469901

    Best regards,
    Ismael

    #1486433

    However, the question remains as to why this is the case for you. I use this setting relatively often and always had it so that even if an av-curtain-footer-container was in place, it was always part (child) of #main.

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