Feature No Code Attached Yet
avatar 1inkin
1inkin
1 Feb 2024

Steps to reproduce the issue

  1. Create Menu Item with Type = Single Article
  2. In tab Page Display for this Menu Item select Show Page Heading = Show and Page Heading = for example "Menu page header"
  3. Open this menu page in front

Expected result

Menu page header and Article header have different styles

Actual result

Menu page header and Article header have the same style
div class="page-header"

Additional comments

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.

avatar 1inkin 1inkin - open - 1 Feb 2024
avatar 1inkin 1inkin - change - 1 Feb 2024
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 1 Feb 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Feb 2024
avatar 1inkin 1inkin - change - 1 Feb 2024
The description was changed
avatar 1inkin 1inkin - edited - 1 Feb 2024
avatar 1inkin 1inkin - change - 1 Feb 2024
The description was changed
avatar 1inkin 1inkin - edited - 1 Feb 2024
avatar drmenzelit
drmenzelit - comment - 1 Feb 2024

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.
grafik

You can also use something like that:
.com-content-article > .page-header:first-of-type { background-color: gold; }

avatar 1inkin
1inkin - comment - 2 Feb 2024

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.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42739.

avatar drmenzelit drmenzelit - change - 2 Feb 2024
Labels Added: Feature
avatar drmenzelit drmenzelit - labeled - 2 Feb 2024
avatar chmst chmst - change - 22 Nov 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-11-22 10:22:00
Closed_By chmst
avatar chmst chmst - close - 22 Nov 2024
avatar chmst
chmst - comment - 22 Nov 2024

please test #44505

avatar chmst chmst - change - 3 Dec 2024
Status Closed New
Closed_Date 2024-11-22 10:22:00
Closed_By chmst
avatar chmst chmst - reopen - 3 Dec 2024

Add a Comment

Login with GitHub to post a comment