• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Hide Secondary Nav Menu on Mobile in Foodie Pro

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Hide Secondary Nav Menu on Mobile in Foodie Pro

This topic is: resolved

Tagged: css, foodie pro, Mobile Theme

  • This topic has 3 replies, 3 voices, and was last updated 6 years, 8 months ago by kysmet4e.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • July 20, 2016 at 1:49 pm #189849
    senordeer
    Member

    Hello! On this site:

    Home

    I have installed a Sticky Menu as the secondary nav menu. My problem is, I would like to hide this menu on mobile themes. In the mobile CSS I have
    .nav-secondary {
    display: none;
    }

    and this hides the dropdown menu, but the hamburger menu placeholder and top and bottom border still appear on mobile. I want to hide this as well. Theme is Foodie Pro, I just get confused with mobile CSS bc can't use Firebug on mobile so I can't figure out what to hide so the secondary hamburger menu and borders do not appear. Thanks in advance!

    http://thedowntownplush.com
    July 21, 2016 at 9:07 am #189907
    Christoph
    Member

    Hi,

    there is no need to use Firebug.
    You can use the Inspector Tools in your Browser (Firefox: Inspect Element; Chrome: Inspect)
    and toggle a "mobile view" mode.

    But in this case, it won't help.

    You have to edit general.js in /assets/js/

    Around line 108 you will find:
    $navs = $( 'nav' );

    change that to
    $navs = $( '.nav-primary' );


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    July 21, 2016 at 11:46 am #189942
    senordeer
    Member

    Christoph, you are seriously the best, not only for the Mobile View tip on Chrome Inspector (I never knew) but that change worked perfectly. I would have been stuck fooling with the CSS forever, thank you again!

    July 21, 2016 at 12:40 pm #189951
    kysmet4e
    Member

    This one really helped me a lot. Thanks for the reply, Christoph 🙂

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble