Menu

WordPress Menu item > Sub menu Class update

WordPress Menu item > Sub menu Class update
  1. How do I change the sub menu class in WordPress?
  2. How do I create a dynamic submenu in WordPress?
  3. How do I add a class to a menu item in WordPress?
  4. How do I get to menu in WordPress?
  5. How do I add a class to WP Nav menu li a href?
  6. How do I create a multi level menu in WordPress?
  7. How do I change a static menu to a dynamic menu in WordPress?
  8. How do I show primary menu in WordPress?
  9. How do I style a menu in WordPress?
  10. How do I get the header menu in WordPress?

How do I change the sub menu class in WordPress?

By this way, only one method needs to be overridden below is the code that you can use:

  1. class My_Walker_Nav_Menu extends Walker_Nav_Menu
  2. function start_lvl(&$output, $depth)
  3. $indent = str_repeat("\t", $depth);
  4. $output .= "\n$indent<ul class=\"my-sub-menu\"">
Update a Softaculous staging site with the latest live DB
What is softaculous staging? How do I make my staging site live? How do I make a softaculous staging site? How do I create a staging site in cPanel? W...
Woocommerce products search with custom fields
How do I add custom fields to WooCommerce products? How do I create a product search page? How do I add an advanced custom field in WooCommerce? How d...
Is it good practice to use REST API in wp-admin plugin page? [closed]
Should I disable REST API? Should I disable WordPress REST API? Should I disable WP JSON? What is WordPress REST API used for? How do I block REST API...