You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Article Title should be H1
I get that H1 can also be the "Page Heading" aka Menu Title.
But in an article view, you're most likely not gonna wanna have the Menu Title as an H1. Or even if so, it's better to run the risk of having two H1 (if a menu name is displayed), than the article title not being an H1.
I personally don't care as I fix it in template overrides anyway. But as a standard, common practice, my two cents is that Article title should be H1 by default.
* Make Title H1 only if Menu Title is not displayed
* Cleaner code
* Update components/com_content/tmpl/article/default.php
Co-authored-by: Quy <[email protected]>
* Update components/com_content/tmpl/article/default.php
Co-authored-by: Quy <[email protected]>
* separate assignment and echo
as per feedback, to make it more obvious where the value is coming from
Co-authored-by: Quy <[email protected]>
0 commit comments