Jump to content

Enlarged logo with code for mobile header. Now logo is misaligned in mobile view...

Go to solution Solved by Ziggy,

Recommended Posts

Posted

Site URL: https://www.omega-environmental.org

I wanted to enlarge the logo on this site, as the mobile view made it appear tiny. I recently found this custom code (see below) on another post, which worked to enlarge the logo, however now the logo is aligned too low within the header and when you scroll down on the mobile view, it hangs a bit below the header.  
Ideally, I would like to enlarge the logo a bit more, without it bleeding down below the header when scrolling on mobile - but also keep it center-aligned with the hamburger menu.
Is this possible?   TY!!

Code currently using:  
@media screen and (max-width: 767px) {
    .header-title-logo img {
        max-height: 60px;
    }
}

Posted (edited)

You shouldn't need code for this, you can adjust the mobile logo size in the header logo settings:

image.png.fb5e897a305d82b88434f994c8afc53d.png

Edited by Ziggy

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 (edited)

Yes, but that way also enlarges the header, stretching it down the screen more.  I do not want the header space any taller.

Edited by Nicole_DG
Posted
1 hour ago, Nicole_DG said:

Yes, but that way also enlarges the header, stretching it down the screen more.  I do not want the header space any taller.

Then you probably want to adjust the padding, try this code and adjust the values, you will still need to adjust the logo size:

@media only screen and (pointer: coarse) and (max-width: 1024px), screen and (max-width: 799px) {
    .header .header-announcement-bar-wrapper {
        padding: 4vw 4vw;
    }
}

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

Thank you for your assistance. 
I've tried that and I can see it does adjust the padding, unfortunately it does not address the alignment issue with the hamburger. Also part of the logo still hangs below the header when scrolling, which is probably the biggest issue.

  • Solution
Posted
6 hours ago, Nicole_DG said:

Code currently using:  
@media screen and (max-width: 767px) {
    .header-title-logo img {
        max-height: 60px;
    }
}

The overlap is because you still have this code, if you remove it and rely on the settings it won't overlap.

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?

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.