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:
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.
primary-menu
. So just use the same function add a class to the body.