It is all about programming. A blog about PHP, MYSQL, Javascript, Jquery,AJAX,HTML & CSS tutorial.
Get short trick, knowledge based snippet for programming and technology related ideas.
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