ajax doesn't change body classes (and maybe more)
-
wrote on May 25, 2023, 10:13 AM last edited by
If you have ajax activated in Lay Theme Options, the body classes dont change if you change pages. For example the .home class is always active, wether you are on the home page or not. This means you cant use .home { ... } to address only this page.
As a workaround you can disable ajax but lose ajax benefits.
-
you can use the slug-** class!
or id-** class :)
-
you can use the slug-** class!
or id-** class :)
wrote on May 30, 2023, 5:23 PM last edited by@arminunruh Yes, but if you want to address the front page and set a different page as the front page, the code doesn't work anymore (or you have to remember to change the id number in the code again).
-
yes, if u update lay theme in an hour this will be fixed!
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it