Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1427

General Questions/New to Joomla! 4.x • Re: Adding body class to template

$
0
0
Change $menu->params to $menu->getParams().
OK thanks, that worked for desktop but not for mobile. What's interesting is that in Firefox's inspector I am still seeing this for the body class in mobile view:

Code:

<body id="s5_body" class="s5_responsive_mobile_present">
But this when viewing the mobile view page code directly using "view source":

Code:

<body id="s5_body" class=" home homie">
The latter is what is set for the page class in the home page menu item and what I'm after for both views. There must be something in the template that overrides that for mobile views. Perhaps I need to bring this up with the template providers?
screen-grab- 2024-05-20 at 1.35.06 PM.jpg
screen-grab- 2024-05-20 at 1.38.19 PM.jpg
screen-grab- 2024-05-20 at 1.40.13 PM.jpg

Statistics: Posted by vincebodie — Mon May 20, 2024 8:39 pm



Viewing all articles
Browse latest Browse all 1427

Trending Articles