Astroid-Framework icon indicating copy to clipboard operation
Astroid-Framework copied to clipboard

<main> element as part of HTML source.

Open chetanmadaan opened this issue 5 years ago • 2 comments

More info here:

Originally Idea by Delinieict (https://www.joomdev.com/forum/profile/18051-delinieict)

chetanmadaan avatar Feb 06 '20 16:02 chetanmadaan

link: https://www.joomdev.com/forum/astroid-framework/4380-would-it-be-possible-to-have-the-main-element-added

chetanmadaan avatar Feb 07 '20 13:02 chetanmadaan

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.

hiteshaggarwal avatar Jan 29 '21 08:01 hiteshaggarwal