I am generating a menu in WordPress using wp_nav_menu() function and I want to add both text and variable into the 'menu_class' property.
Now this is how I do it:
`'menu_class' => 'text' . $variable,`
However no class is shown when I use this method (no error/warnings as well).
I want to know how to add the text "text" and the variable "$variable" into 'menu_class' property?
Thanks
menu_class... the class that is applied to the ul element which encloses the menu items. Multiple classes can be separated with spaces. Formerly known as $wrap_class.text' . ' ' . $variable