Jump to content

Vertical line next to site title

Go to solution Solved by Ziggy,

Recommended Posts

Hi, I am looking for a code that vertically separates the site title and the navigation by placing a 1px vertical line (|) next to the site logo (similar to the screenshot). Can anyone help with this? It should be responsive across different browser sizes, spanning the whole height of the header, so unfortunatly it's not enough to put a 

.header-title-text::after { content: " | ";  } 

in. 

 

My site is https://tetra-accordion-k45t.squarespace.com/, password is squarespace.

Screenshot 2023-11-09 at 17.07.20.png

Link to comment
  • Solution

This Custom CSS would add a vertical line:

.header-title {
    border-right: 1px solid white;
}

But to get the line to span the entire height, you'll also want to add this:

.header .header-announcement-bar-wrapper {
  padding-top: 0vw;
  padding-bottom: 0vw;
}
.header-title {
  padding-top: 1vw;
  padding-bottom: 1vw;
  padding-right:2vw;
}
.tweak-fixed-header:not(.sqs-edit-mode-active):not(.sqs-site-styles-active) .header.shrink .header-announcement-bar-wrapper {
    padding-top: 0vw;
    padding-bottom: 0vw;
}

Let me know if that works.

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) 

 Did I help? Buy me a coffee?

Link to comment
24 minutes ago, Ziggy said:

This Custom CSS would add a vertical line:

.header-title {
    border-right: 1px solid white;
}

But to get the line to span the entire height, you'll also want to add this:

.header .header-announcement-bar-wrapper {
  padding-top: 0vw;
  padding-bottom: 0vw;
}
.header-title {
  padding-top: 1vw;
  padding-bottom: 1vw;
  padding-right:2vw;
}
.tweak-fixed-header:not(.sqs-edit-mode-active):not(.sqs-site-styles-active) .header.shrink .header-announcement-bar-wrapper {
    padding-top: 0vw;
    padding-bottom: 0vw;
}

Let me know if that works.

Thanks so much, Ziggy!

Link to comment
43 minutes ago, charlineca said:

Thanks so much, Ziggy!

Happy to help! Can you mark my post as the solution and give it a like? Thanks!

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) 

 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.