Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

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);