Re: Flash of unstyled links

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

#1629
emsgeorge
Participant

I tried this in my Genesis child theme, but it doesn’t work:


//* Add 'sm' class to menu items for smartmenus javascript to work
function add_menu_class() {
wp_nav_menu( array( 'menu' => 'Main Menu', 'menu_id' => 'menu-main-menu', 'menu_class' => 'sm' ) );
}
add_filter( 'wp_nav_menu_menu-main-menu_items', 'add_menu_class', 10, 2);

What am I doing wrong?

Thanks for your help!

Register

You will be emailed a link to set your password.

Login

Lost password?