Commit 60f2f0d
[4.0] Shouldn't Article Title be H1? (#32448)
* 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]>1 parent c4ddfb8 commit 60f2f0d
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
| 56 | + | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
0 commit comments