Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Mobile Menu using Header Content Wells


SeeWhy

Question

Site URL: https://www.crossingtheline.online/

Site password: ctlonline

Hi there,

I'm hoping for some help with creating a mobile navigation menu using the Header Content of my site.

I've currently disabled mobile nav using: 

#mobileMenuLink a {
    visibility: hidden;
}

I am using the Header Content for my site menu (see screenshots attached) - and would like this to also appear as a mobile menu with hamburger icon or dropdown.

Any help would be much appreciated,

Thanks!

Desktop menu.png

no-mobile-display.jpg

Link to post
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Posted Images

4 answers to this question

Recommended Posts

  • 0

Hi SeeWhy,

I can provide you snippet for the hambuger menu style like so

image.png.7666a63dab786ddcc4fcb8b5c8481c33.png

But the proceed of animation is complex than I expected so if you want to go furthur you can pm me

@media only screen and (max-width: 800px) {
    #headerBlocks {
        display: block !important;
        position: fixed;
        z-index: 9999;
        background: #fff;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        padding: 10px;
    }
    #headerBlocks .sqs-block-content h2>strong {
        display: none;
    }
    #headerBlocks .sqs-block-content h2~* {
        -display: none;
    }
    #headerBlocks .sqs-block-content h2 {
        background: black;
        width: 40px;
        height: 5px !important;
        position: relative;
        -webkit-transition: background 10ms 300ms ease;
        transition: background 10ms 300ms ease;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
        display: inline-block;
        color: #fff;
        text-indent: -9999px;
        top: -15px;
        cursor: pointer;
        margin: 0;
        display: flex;
    }
    #headerBlocks .sqs-block-content h2:before,
    #headerBlocks .sqs-block-content h2:after {
        -webkit-transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
        transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
        transition: top 300ms 350ms ease, transform 300ms 50ms ease;
        transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
        position: absolute;
        background: black;
        top: -12px;
        width: 40px;
        height: 5px;
        content: '';
        cursor: pointer;
    }
    #headerBlocks .sqs-block-content h2:before {
        top: -25px;
    }
}

Hambuger inspriration from:

https://codepen.io/fabean/pen/XXegoQ

Cheers

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement, Enable Pinch/Zoom on lightboxGeolocation Automatic Currency Converter, Sortable Table from GSheet
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to post
  • 0

Thank you! @bangank36 !

Last question: Is there a way to get the menu to be concealed (in the hamburger) by default, then appear when you click on the hamburger?

At the moment, the menu is sitting on top of the other content and not hiding when I click the hamburger.

If that is too complex, is there a way to just have the menu sitting above the rest of the content, so you see the menu, then scroll down to start the rest of the site?

screenshot mobile.jpg

Edited by SeeWhy
Add name
Link to post
  • 0

Get rid of these lines to make it display on top

image.png.76e79cf22d90bc15fb86df52f941f413.png

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement, Enable Pinch/Zoom on lightboxGeolocation Automatic Currency Converter, Sortable Table from GSheet
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...