Jump to content

Harris template: How do you add vertical lines ( | ) between the items of your navigation bar/header?

Recommended Posts

Hi there!

How do you add vertical lines (dividers) between the items of your navigation bar/header? So far, I only manage to add a | by adding one to the navigation title (in the Pages section) but this is not working right because the | also changes color once you put your cursor on it (e.g. "Home |" becomes a secondary color instead of just "Home"). See picture attached

Anyone has a CSS code?

Thank you :)

screen-shot-2019-08-07-at-105617-am.png.58ab9883acbd072d0d5b36639f210899.png

Link to comment
  • Replies 5
  • Created
  • Last Reply

@ThomVB Add to Home > Design > Custom CSS


/* Add vertical links */
.site-navigation .nav-item {
   border-right: 1px solid #000 !important;
}
/* Hide vertical last item */
.site-navigation .nav-item:last-child {
   border-right: none !important;
}
/* Change spacing */
.site-navigation .nav-item span {
   padding-right: 10px;
}

Reference: https://beaverhero.com/harris-squarespace/#AddverticallinesbetweenNavigation_Items

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

@ThomVB in this code


border-right: 1px solid #000 !important;


000 is color. Replace with green, eg: border-right: 1px solid green !important;

or replace with color rgba. eg: border-right: 1px solid rgba(8,27,51,.8) !important;

with only screenshot, i can't check what is your "green" code.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.