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

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

$
0
0
Thanks for that, good to know. I added the code from Cassiopeia and I still have the same issue. The body class renders fine for desktop, but on mobile it still renders it as:

Code:

<body id="s5_body" class="s5_responsive_mobile_present">
Hi.

When you work with code and ask questions on the forum, always provide a link and turn OFF JCH Optimize, completely cleaning its cache.

It has nothing to do with PHP. It seems that on your site there is JS that changes Body classes if the screen width is less than a value determined in this script.

I do not know which file it is, since JCh Optimize does not allow to determine this.
1.jpg
Judging by the name of the selector, this JS removes the sidebar on mobile devices using for this its own Body class.

Statistics: Posted by Pavel-ww — Tue May 21, 2024 7:31 am



Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>