Hi.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">
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. 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