Add style to body based on url


I recently installed a plugin on my wordpress website
Look like the developer of this plugin have no creativity. I want to add class to the body based on url so i can customize the template of each page
I tried windows.location in javascript , When i call alert() in windows.location , it work fine but when use $(body’).addClass , Its not working
What should i do ?

Artan 8 months 2020-12-12T06:10:21-05:00 0 Answers 12 views 0

Leave an answer