1. pat02
  2. Sherlock Holmes
  3. Commercial Templates
  4. Thursday, 09 June 2022
  5.  Subscribe via email
Hi

In menu item I did add CSS class for page.
But this class is not added to BODY tag.

I checked index.php of Jasmine template and there I replaced this code

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


by this one:

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

(I took above code from Cassiopeia template)

Now pageclass is added.

Maybe you want check your J4 templates regarding this issue? :)

Patrick


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

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.