• Resolved zackandg

    (@zackandg)


    I’m trying to customize the menu a little bit: I need it to a) Stop collapsing on mobile – I want the horizontal, desktop version menu on mobile as well; and b) only display certain options, depending on which page the visitor is on (for example, if the visitor is on the “photography” page, I need the menu to only display the icon (i am using a plugin that allows me to have pictures in menus) for the “videography” site, and vice versa. I have sort of managed to achieve point a), but my code removes the menu completely on mobile, instead of keeping the desktop version. No idea how to go about getting b) done though.

    This is the code i’ve used for that:

    @media (max-width: 1000px) {
     .collapse {
       display: block !important;
     }
    
     button.toggle.nav-toggle.mobile-nav-toggle {
       display: none !important;
     }
    }

    Here’s a mockup I made in Photoshop of what I want:

    View post on imgur.com

    As I said, When a user clicks on the video icon, it should change to a photo icon.
    Is this even possible?

    Any suggestions appreciated!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • stilman davis

    (@stilman-davis)

    You might keep both icons on the home page. Create separate pages for photography and videography. Anything that stems off photography should have the video icon and vice versa. Not sure immediately of the coding/css for that, but I am sure it can be done, but not by me at the moment. (A quick thought: add a div called one or the other and test for it, then call the right menu item.)

    To get rid of the mobile perhaps you just need to get rid of the css/java that calls it. In other words get rid of the @media which calls the mobile menu.

    I hope that gets you started.

    Thread Starter zackandg

    (@zackandg)

    After struggling with it for an hour, I just gave up and built my own menu. I’m happy with how it is now. Thank you, @stilman-davis for the suggestion!

    stilman davis

    (@stilman-davis)

    Nice how you made the subtitle of the site disappear when it is on a small screen.

    Glad you have the menu the way you want it. Shame you have not been able to show and hide the video or picture item.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dynamic Menu?’ is closed to new replies.