Jump to content

Site header logo width custom CSS - Squarespace 7.1

Recommended Posts

Posted

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

  • Replies 14
  • Views 3.9k
  • Created
  • Last Reply

Top Posters In This Topic

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

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

Posted

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!

Posted

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

  • 1 year later...
Posted

Hello , 

my url is www.posh-bridal.com and I would like to make my logo bigger but keep a very thin header 🙂 what should I add both for desktop and mobile ? 

Many millions of thanks 

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

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Posted
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  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Posted

Paul could you help me with another problem ? I want to add another button underneath the "add to cart" button in the same shape same color but with written on it "Book a stylist advice" can you help me please ? 

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.