Astroid-Framework
Astroid-Framework copied to clipboard
<main> element as part of HTML source.
More info here:
Originally Idea by Delinieict (https://www.joomdev.com/forum/profile/18051-delinieict)
link: https://www.joomdev.com/forum/astroid-framework/4380-would-it-be-possible-to-have-the-main-element-added
Hi @chetanmadaan , This can be possible by overriding JOOMLA_ROOT/libraries/astroid/framework/frontend/document/body.php
file to YOUR_TEMPLATE/html/frontend/document/body.php
. There is also an option to wrap Main content into <main>
tag by adding two files YOUR_TEMPLATE/html/frontend/document/wrapperStart.php
and YOUR_TEMPLATE/html/frontend/document/wrapperEnd.php
in wrapperStart.php
file start <main>
tag
and in wrapperEnd.php
file close </main>
tag
Why we do not hard coded this because we did it before and users those are using Astroid and styled their div
elements having issue after update.