Mobile menu help needed

Community Forums Forums Design Tips and Tricks Mobile menu help needed

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  cehwitham 1 year, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24498

    Ineke
    Participant
    Post count: 1

    Is it possible to place the secundary menu in the top of the primary sidebar, but this only for screens wider than 800px?
    In smaller screens I prefer the secundairy menu to show up after the header.

    I guess I need some code for this in functions.php.
    Is that right? I should love it if sombody can help me with this code snippet?

    Theme eleven40

    #37599

    cehwitham
    Participant
    Post count: 396

    `/** Move secondary nav menu */
    remove_action( ‘genesis_after_header’, ‘genesis_do_subnav’ );
    add_action( ‘genesis_sidebar’, ‘genesis_do_subnav’, 1 );
    `

    Put the above code in your functions.php file to move the secondary navigation into the primary sidebar. You can then use media queries to style it for the various browser sizes.

    Chris


    Twitter: cehwitham Web: cehwitham.com

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

You must be logged in to reply to this topic.