Hi,
How can I put a vertical bar “|” in my navigation menu (desktop only). I want to put “|” in the middle of Contact Us and search bar in the navigation panel.
URL - https://ausfin.in/
A user wants to add a vertical bar separator (“|”) in their Shopify navigation menu, visible only on desktop, positioned between “Contact Us” and the search bar.
Solution Provided:
:after) on .header__inline-menu with absolute positioningFollow-up Adjustment:
When asked how to make the bar bolder, the responder suggested increasing the width from 1px to 1.5px (adjustable to fit the website’s design).
The discussion appears resolved with working CSS code provided.
Hi,
How can I put a vertical bar “|” in my navigation menu (desktop only). I want to put “|” in the middle of Contact Us and search bar in the navigation panel.
URL - https://ausfin.in/
Hi @Abhishek_Singh ,
This is Richard from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/base.css->paste below code at the TOP of the file:
@media screen and (min-width: 990px) {
.header__inline-menu {
position: relative;
padding-right: 15px;
}
.header__inline-menu:after {
content: "";
position: absolute;
top: 10px;
right: 0;
background: #000;
height: 20px;
width: 1px;
}
}
I hope it would help you
Best regards,
Richard | PageFly
Hey @PageFly-Richard ,
How to make it bold as well ? ![]()
Hi @Abhishek_Singh ,
You can replace previous your code by below code:
@media screen and (min-width: 990px) {
.header__inline-menu {
position: relative;
padding-right: 15px;
}
.header__inline-menu:after {
content: "";
position: absolute;
top: 10px;
right: 0;
background: #000;
height: 20px;
width: 1.5px;
}
}
NOTE: You can change 1.5px to fit your website
I hope it would help you
Best regards,
Richard | PageFly