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


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!