Change submenu markup

The whole idea of a custom walker class is that you can customize the menu in detail. So, you can also leave the main menu as it is and build the submenus the way you give in the image. However, as Hareesh indicates in the comments, this does require quite a lot of customization, especially … Read more

wp_nav_menu add class to child item with sub child

I have not tested this but it looks like you aren’t testing for $depth the way you need to be. This block: $classes[] = ($args->walker->has_children) ? ‘dropdown’ : ”; $classes[] = ($item->current || $item->current_item_anchestor) ? ‘active’ : ”; $classes[] = ‘menu-item-‘ . $item->ID; if( $depth && $args->walker->has_children ){ $classes[] = ‘dropdown-submenu’; } Should be something … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)