Jump to content

Add tagline to center of header section while using design layout with logo to the left and navigation/cta to the right

Recommended Posts

Unfortunately I cannot share a link to the website as it is strictly under NDA, but I am wondering if anybody can assist?

I've had a look at other threads that tend to position taglines after the logo/title or after/before the navigation or call to action. However these always end up positioning the tagline directly underneath or above these options.

 

I am looking to position the tagline in the center, avoiding overlaps with the navigation when the window is reduced in size.

I've attached an example to help visualise.

 

 

example header.png

Link to comment

I would also like to position the Navigation (I only have one option, styled to look identical to the CTA button) above the CTA button so that it perfectly lines up and both are vertically centered.

See attached example:

 

nav cta.png

Link to comment

It would be better to remove the CTA and put two links into the navigation. Those can then be styled and stacked.

How do you want to add the tagline, assuming you're happy with CSS?

This will stack the navigation:

.header-nav-list {
  flex-direction: column;
  row-gap: 4px;
}

This will start you off with styling the navigation links:

.header-layout-nav-center .header-nav .header-nav-item {
  border: 2px solid black;
  background-color: black;
  transition: ease-in-out 300ms;
  &:hover {
    background-color: red;
  }
}
.header .header-nav-wrapper a {
  padding: 0.1em 0.8em;
}

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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (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?

Link to comment

Thank you so much! 

For the tagline, would you recommend adding the text in the section below and then using CSS to move it up by x% and finetuning it (and praying it doesn't move around too much depending on viewfinder)? Or is there an easy way to add it to the header directly?

Link to comment

I would suggest adding it as a pseudo element after the logo using CSS or JavaScript.

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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (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?

Link to comment

Hm so I tried the flex direction but for whatever reason the option at the top of the stack is weirdly extended to the left, like there's some extra padding. I've rearranged the order and it still happens.

padding.png

padding.png

Link to comment

Also (sorry) if I add the tagline ::after the logo, is there a way to position it perfectly in the center of the header? 

I'm sorry for all the questions, for some reason I'm struggling with this puzzle! Really appreciate the help.

Link to comment
20 hours ago, RobinBDG said:

Also (sorry) if I add the tagline ::after the logo, is there a way to position it perfectly in the center of the header?

Might be tricky given the sizes.

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!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (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?

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.