Tuesday, 12 May 2015

Change WP default sub menu class

       

add  it to functions.php

function change_submenu_class($menu) { 
  $menu = preg_replace('/ class="sub-menu"/','/ class="new menu class name" /',$menu); 
  return $menu; 

add_filter('wp_nav_menu','change_submenu_class'); 

No comments:

Post a Comment