Re: How to add a separator line in header (Dawn)

Solved

How to add a separator line in header (Dawn)

manbru
Pathfinder
112 0 31

Hey,

 

I would like to have a separator line in between the menu in my header.

 

Skärmavbild 2024-07-23 kl. 09.21.08.png

 

my store: https://r1vex.myshopify.com/ 

 

thanks for help!

Accepted Solution (1)

Moeed
Shopify Partner
5440 1473 1758

This is an accepted solution.

Hey @manbru 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.header {
    max-width: 100% !important;
}
nav.header__inline-menu {
    padding-top: 5px !important;
    border-top: solid 1px #00000063;
}
h1.header__heading {
    margin-bottom: 10px !important;
}
</style>

RESULT:

Moeed_0-1721719716958.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 4 (4)

Moeed
Shopify Partner
5440 1473 1758

This is an accepted solution.

Hey @manbru 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.header {
    max-width: 100% !important;
}
nav.header__inline-menu {
    padding-top: 5px !important;
    border-top: solid 1px #00000063;
}
h1.header__heading {
    margin-bottom: 10px !important;
}
</style>

RESULT:

Moeed_0-1721719716958.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


Rahul_dhiman
Shopify Partner
558 111 109

Hello @manbru 

Go to online store ---------> themes --------------> actions ------> edit code------->base.css -----> line number 3693
search this code

#shopify-section-sections--22029800276294__header>sticky-header>header>nav {
margin-top: 3px;


and replace with this code

#shopify-section-sections--22029800276294__header>sticky-header>header>nav {
margin-top: 3px;
border-top: solid 2px red !important;
}

 and the result will be
13.png

If this was helpful, hit the like button and mark the job as completed.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me [email protected] - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167

parth_ghelani
Shopify Partner
258 38 35

Hello @manbru 

To show the separator line between logo and menu items in your themes, you just need to follow below steps:

 

1. go to admin > Online Store > Edit code.

2. In code directory, find the file named "base.css" and open it.

3. copy the below mentioned code and paste it at the end of the file.

.header--top-left .header__inline-menu {
  position: relative;
}
.header--top-left .header__inline-menu::before {
	content: '';
	position: absolute;
	height: 1px; /* Change height as per your requirement */
	width: 100%;
	background: #000; /* Change color as per your requirement */
	top: 2px;
	z-index: 99999;
}

4.Don't forget to save the file after changes.

Hope this solution works best for your requirement.

 

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Best Regards

Parth ghelani

Was your question answered? Mark it as an Accepted Solution.
If you need further assistance to optimize your store, please don't hesitate to reach out. I'm committed to providing you with my full support and ensuring that you get the most out of our collaboration.

Get in Touch: You can contact me directly at [email protected] for any questions or concerns

niraj_patel
Shopify Partner
2378 514 512

Hello @manbru 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
nav.header__inline-menu {
border-top: 1px solid #000 !important;
}
</style>

techlyser_web_0-1721650785371.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- [email protected]