Add style to body based on url

Question

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 ?

0
Artan 1 month 0 Answers 12 views 0

Leave an answer