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

Hamburger icon out of place on mobile view on Wells template


cjgetty

Question

Site URL: https://camerongetty.com

Hi,

I just changed the MENU text on the Wells template's mobile view to a hamburger icon, but for some reason, the icon doesn't line up nicely on the right side of the viewport like the MENU text does. Any fixes?

Here's the added custom CSS:

#mobileMenuLink a:before {
    content: "";
    background-image: url(https://static1.squarespace.com/static/5faf83293c1c873f9e16be1a/t/5fbda7bf2dd96f5918a94f27/1606264767069/icons8-menu-48.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: 18px;
    height: 18px;
    display: inline-block;
    visibility: visible;
}
#mobileMenuLink a {
    visibility: hidden;
}

Paging @tuanphan 

Thanks!

Edited by cjgetty
Link to post
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

Site URL: https://camerongetty.com Hi, I just changed the MENU text on the Wells template's mobile view to a hamburger icon, but for some reason, the icon doesn't line up nicely on the right si

3 answers to this question

Recommended Posts

  • 0
3 hours ago, cjgetty said:

Site URL: https://camerongetty.com

Hi,

I just changed the MENU text on the Wells template's mobile view to a hamburger icon, but for some reason, the icon doesn't line up nicely on the right side of the viewport like the MENU text does. Any fixes?

Here's the added custom CSS:


#mobileMenuLink a:before {
    content: "";
    background-image: url(https://static1.squarespace.com/static/5faf83293c1c873f9e16be1a/t/5fbda7bf2dd96f5918a94f27/1606264767069/icons8-menu-48.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: 18px;
    height: 18px;
    display: inline-block;
    visibility: visible;
}
#mobileMenuLink a {
    visibility: hidden;
}

Paging @tuanphan 

Thanks!

You can move the icon down a bit

#mobileMenuLink a:before {
    content: "";
    background-image: url(https://static1.squarespace.com/static/5faf832…/t/5fbda7b…/1606264767069/icons8-menu-48.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: auto;
    height: 18px;
    display: block;
    visibility: visible;
    top: 5px;
    position: relative;
}

 

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
16 hours ago, bangank36 said:

You can move the icon down a bit


#mobileMenuLink a:before {
    content: "";
    background-image: url(https://static1.squarespace.com/static/5faf832…/t/5fbda7b…/1606264767069/icons8-menu-48.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: auto;
    height: 18px;
    display: block;
    visibility: visible;
    top: 5px;
    position: relative;
}

 

That fixed the top padding issue but it’s still not fully justified to the right. Any solution?

If not, do you know how to change the MENU text? I could use a hamburger menu Unicode icon...

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...