1. pat02
  2. Sherlock Holmes
  3. Commercial Templates
  4. Friday, 26 November 2021
  5.  Subscribe via email
Hello

If I add a CSS class to the menu item into the field for the page class, the CSS class is not set in body tag.

Patrick

css-class-menu-item.png


body-tag.png


In index.php if I replace


$pageclass = $menuParams->get('pageclass_sfx', '');


with this code

$pageclass = $menu !== null ? $menu->getParams()->get('pageclass_sfx', '') : '';


then it works.
Attachments (2)
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Patrick

Thank you for reporting this issue and for sharing your solution. We have just updated the Joomla 4 Nina template with this fix.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!