Re: Flash of unstyled links

Home Forums Older releases 0.9.x Flash of unstyled links Re: Flash of unstyled links

#1641
emsgeorge
Participant

OK, here’s a way to add the class ‘sm’ to a WordPress menu. Just add to your functions.php file:


//* Add 'sm' class to main menu
function smartmenu_wp_nav_menu_args( $args ) {
	$args['menu_class'] .= " sm";
	return $args;
}
add_filter( 'wp_nav_menu_args', smartmenu_wp_nav_menu_args);

Register

You will be emailed a link to set your password.

Login

Lost password?