Jump to content

Site header logo width custom CSS - Squarespace 7.1

Recommended Posts

Hello, I'm trying to make my site logo bigger (or wider more to the point!) than Squarespace 7.1 allows in the header customisation settings. So I have tried using this custom CSS code:

.header-title-logo img {
    max-width: 700px;
}

When I try using this custom CSS to get the logo to the correct size - the logo is made the correct size but goes off to the right instead of staying centred!? How can I keep it centred all the time on desktop?

Attached are screen grabs before and after I apply this custom CSS

Can anyone help?

Will be eternally grateful

Thanks a million

before.png

after.png

Link to comment
  • Replies 14
  • Views 2.6k
  • Created
  • Last Reply

Top Posters In This Topic

3 hours ago, MadaRekcorc said:

Hello, I'm trying to make my site logo bigger (or wider more to the point!) than Squarespace 7.1 allows in the header customisation settings. So I have tried using this custom CSS code:

.header-title-logo img {
    max-width: 700px;
}

When I try using this custom CSS to get the logo to the correct size - the logo is made the correct size but goes off to the right instead of staying centred!? How can I keep it centred all the time on desktop?

Attached are screen grabs before and after I apply this custom CSS

Can anyone help?

Will be eternally grateful

Thanks a million

before.png

after.png

Hi , Will you please share website link so we can guide you in a better way.

Link to comment
On 5/8/2022 at 5:37 AM, MadaRekcorc said:

Add to Design > Custom CSS

/* Logo size */
.header-title-logo img, .header-title-logo a {
    max-height: 400px !important;
}
.header-display-desktop {
    flex-direction: column;
    justify-content: center !important;
}
.header-title-nav-wrapper {
    flex-direction: column;
}
.header-title {
    width: 70% !important;
}

 

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!)

Link to comment

Thank you! This seems to work perfectly for the desktop site, however when I preview in mobile - the logo goes really small and I'm unable to adjust its size with the slider within logo options?

Would I need further CSS to adjust the mobile logo size independently?

On the mobile version: I would also ideally have the burger sit underneath the site title (centred) and the site title be centred across the top... is there a way of doing this with CSS?

Thank you so much!

Link to comment

Ahh - Sorry, just noticed this CSS code you have kindly supplied throws the position social Icons and menu out on the DESKTOP version! See attached

It would be great if I could scale the logo whilst maintaining the integrity of the social icons and menu positions as seen in the 'before' still...

Thanks so much!

Screenshot 2022-05-09 at 18.41.06.png

before.png

Link to comment
  • 1 year later...
33 minutes ago, riribaragiola said:

I would like to resize my logo without making my header bigger

The first step will be to upload an image file that doesn't contain empty space above and below the logo itself. As you can see below, the current image file contains lots of space above and below, so when you increase the size, the header must expand to accommodate this 'space'.

image.png.7faaf65353c29886fe161f03aa1b74a1.png

Edited by paul2009

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment
36 minutes ago, riribaragiola said:

it is done but it makes no changes

Once you've removed the excess space from the image, you should be able to adjust the logo size by using the slider in the header settings:

image.gif.5e7b19d3ebf3a050a8886f85e2918840.gif

You may be able to meet your needs with this alone. Note that there are separate sliders for the logo height on desktop and mobile.

However, once you reach a certain logo height, the header will start to expand so that the logo is not larger than its container.

If you want to shrink the height of the header further, so there is almost no whitespace, you could add some Custom CSS to set a maximum height. For example, for the desktop, you might use:

.header-title-nav-wrapper {
  max-height: 30px;
}

Did this help? Please give feedback by clicking an icon below  ⬇️

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

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.