emsgeorge

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: 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);
    
    in reply to: 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!

    in reply to: Flash of unstyled links #1625
    emsgeorge
    Participant

    Sorry, I tried to wrap my code in pre tags but some of it isn’t showing. If you view source at , you can see the whole head section code. Thank you!

    in reply to: Flash of unstyled links #1624
    emsgeorge
    Participant

    Hi,

    I have my css before the script for smartmenus in the head section. I placed my smartmenus CSS into my main stylesheet (style.css).

    But it’s still having that unstyled issue. Any other insight as to what might be causing the delay? Below is part of the code in the head section. Perhaps you can spot something I missed?

    Thanks so much!

    in reply to: IE8 issue #1565
    emsgeorge
    Participant

    Nevermind! Found the fix! Needed to put response.js link AFTER the link to the IE8 stylesheet. 🙂

    in reply to: SmartMenus for WordPress #1534
    emsgeorge
    Participant

    Wow… incredibly simple fix! Thank you!

    in reply to: Toggle button #1437
    emsgeorge
    Participant

    Worked like a charm! Thanks again!

    in reply to: Toggle button #1435
    emsgeorge
    Participant

    Thanks so much, Vasil!

Viewing 8 posts - 1 through 8 (of 8 total)

Register

You will be emailed a link to set your password.

Login

Lost password?