-
AuthorPosts
-
June 16, 2025 at 11:15 pm #1485538
For an accessibility standpoint, I’ve been asked to “create a MAIN landmark”, by placing the <main> element around all the page’s primary content or give the container element holding the page’s main content an attribute of role=”main”.
What is the cleanest way to do this in my child theme?June 17, 2025 at 6:40 am #1485540Hey hostworks,
Thank you for the inquiry.
You’ll find the main wrapper that contains all the content in the themes/enfold/header.php file, so creating or overriding the template in your child theme is the cleanest approach. Look for this code around line 279:
<div id='main' class='all_colors' data-scroll-offset='<?php echo avia_header_setting( 'header_scroll_offset' ); ?>'>Let us know if you have more questions.
Best regards,
IsmaelJune 17, 2025 at 4:33 pm #1485583Hi Ismael,
is it possible to do it also for other parts of the page like <header> <nav> and <footer>? Which php files should be edited?
Thank you!
June 18, 2025 at 6:56 am #1485611Hi,
Thank you for the update.
For the main menu or navigation, check the
includes > helper-main-menu.phpfile and to modify the footer, you can edit thefooter.phpfile. Make sure sure to keep notes or logs of each modification in case the parent theme files are updated or changed in the future.Best regards,
IsmaelOctober 9, 2025 at 7:33 pm #1489986Ismael,
Sorry for the delay. I’m afraid I need more help to make this happen, can you assist or how do I go about getting a solid Enfold-centric resource?
October 10, 2025 at 6:50 am #1490001Hi,
Thanks for following up.
You can check out the documentation for additional information about the theme: https://kriesi.at/documentation/enfold/
Unfortunately, this type of modification, which is related to accessibility, is beyond the scope of support. You can check out the following link for additional assistance with customization:
— https://kriesi.at/contact/customization
Let us know if you need more info.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.
