Jump to content

Adjust mobile logo size and padding

Recommended Posts

Posted

I've tried to adjust the logo in the mobile header using the "EDIT SITE HEADER" function but I'm still not able to make the logo larger and center it while still having the plus sign to expand the menu visible. If I make the logo too big, the menu disappears and I can't seem to get it center using any of the header layout options. Does anyone know if there is CSS I could use to adjust this?

  • Replies 6
  • Views 962
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Yes, there is code that could do this. Can you share your website URL?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Try this Custom CSS:

@media only screen and (max-width: 768px) {
  .header .header-announcement-bar-wrapper {
    padding: 0vw;
  }
  div.header-title-logo a {
    margin-left:0;
    width: 95%;
  }
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Hi @Ziggy

When I tried that code it cause the logo to distort (will attach before and afters). I tried adjusting the width and margins and it still looked funky. Is there anything else that might work? Thanks : ]

Screen Shot 2023-04-04 at 9.16.39 PM.png

Screen Shot 2023-04-04 at 9.16.51 PM.png

Posted

Try changing this code

<style>
            div.header-title-logo a {
                content: url("https://static1.squarespace.com/static/640228e22101f77a9914bb54/t/6429d218da69c36a33ada109/1680462361029/HORIZONTAL+LOGO+-+WHITE.png") !important;
                max-width: 1200px;
                /* if logo needs to be centered */
                margin-left: 75px;
                margin-right: 0px;
                padding-bottom: 20px;
            }
        </style>

to this

 <style>
            header#header img {
                content: url("https://static1.squarespace.com/static/640228e22101f77a9914bb54/t/6429d218da69c36a33ada109/1680462361029/HORIZONTAL+LOGO+-+WHITE.png") !important;
                /* if logo needs to be centered */
                padding-bottom: 20px;
            }
        </style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

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

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.