How can the class name of a sub-menu be changed in the wp_nav_menu?
Correct Answer: By adding the following code in functions.php: class UL_Class_Walker extends Walker_Nav_Menu { function start_lvl(&$output, $depth) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<ul class=\"level-".$depth."\">\n"; } }
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More JavaScript MCQ Questions