Skip to main content
Imported the image and some minor adjustments
Source Link
birgire
  • 67.8k
  • 7
  • 119
  • 251

Add a class to the body tag when a menu enableis enabled

Question edited

How can iI add a class to the body when the menu at the menu setting > theme locations is selected.

Like this image Like in this screenshot:

theme locations

And if iI have two menumenus, can it add two different classclasses to the body tag?

I would like to use that class to control the nav toggle icon, etc.

Add class to body when menu enable

Question edited

How can i add a class to the body when the menu at the menu setting > theme locations is selected.

Like this image

And if i have two menu, can it add two different class to body?

I would like to use that class to control the nav toggle icon, etc.

Add a class to the body tag when a menu is enabled

Question edited

How can I add a class to the body when the menu at the menu setting > theme locations is selected.

Like in this screenshot:

theme locations

And if I have two menus, can it add two different classes to the body tag?

I would like to use that class to control the nav toggle icon, etc.

Add class to body when menu enabledenable

Question edited

How can Ii add thea class primary-menu-enable to the body when the menu at the primary-menu setting > theme locations is enabledselected.

Like this image

And if i have two menu, can it add two different class to body?

I would like to use that class to control the nav toggle icon, etc.

Add class to body when menu enabled

How can I add the class primary-menu-enable to the body when the primary-menu is enabled?

I would like to use that class to control the nav toggle icon, etc.

Add class to body when menu enable

Question edited

How can i add a class to the body when the menu at the menu setting > theme locations is selected.

Like this image

And if i have two menu, can it add two different class to body?

I would like to use that class to control the nav toggle icon, etc.

added 9 characters in body; edited title
Source Link
Gabriel
  • 2.2k
  • 10
  • 22
  • 24

Add class to body when menu enableenabled

How can iI add the class primary-menu-enable to the body when primary-menu enablethe primary-menu is enabled?

I would like to use that class to control the nav toggle icon, etc.

Thanks.

Add class to body when menu enable

How can i add class primary-menu-enable to the body when primary-menu enable?

I would like to use that class to control nav toggle icon etc.

Thanks.

Add class to body when menu enabled

How can I add the class primary-menu-enable to the body when the primary-menu is enabled?

I would like to use that class to control the nav toggle icon, etc.

Source Link
Loading