Jump to content

Get and compare body classes


soniar4i

Recommended Posts

Hello!

 

I'm working on a new feature for my prestashop store and I'd like to check if in my current body classes exist certain class.

 

Like:

 

if (GETBODYCLASS == 'my-class' ) { do something }

 

What I don't know is how to get the body classes and compare them.

 

Can someone help me, please!!!

 

Thanks a lot 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...