Menu page header and Article header have different styles
Menu page header and Article header have the same style
div class="page-header"
In Joomla 4 Article header had the property "itemprop="headline"" which allowed you to set a different style, but in Joomla 5 this property is gone.
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
This option only works if there is a menu header and a article header. But if you open a article without a menu header with this style, then the header of the article will receive this style. but this style should only be applied to menu header. I defined three different header combinations: 1. article header only. 2. menu header and article header, when the article is single article of this menu. 3. menu header and article header when the article is in the category of this menu. Without a separate class, it is impossible to set styles so that headers are displayed correctly in all cases.
Labels |
Added:
Feature
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-11-22 10:22:00 |
Closed_By | ⇒ | chmst |
Status | Closed | ⇒ | New |
Closed_Date | 2024-11-22 10:22:00 | ⇒ | |
Closed_By | chmst | ⇒ |
In Joomla 5 the code for schema.org (e.g. "itemprop="headline") in the views were removed, since we now have a schema.org plugin.

If you display the page heading and the title of the article the
div
elements have the same class, but there are different headings: h1 and h2, so you can style them differently.You can also use something like that:
.com-content-article > .page-header:first-of-type { background-color: gold; }