Nav bar header design

Solved

Nav bar header design

kayodekevin
Excursionist
26 0 5

Hi all, I am trying to replicate this navigation bar. With the logo on top with a white background and the menu bar background colour black. So far the codes I have seen don't seem to be working. Would love to know how this can be done. Would appreciate some help with this.

 

image001.PNG

 

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10184 2417 3060

This is an accepted solution.

Yes, for arrow and border. Replace on this code. 

 

<style>
@media only screen and (min-width: 989px){
nav.header__inline-menu {
    background: black;
    display: flex;
    max-width: 100%;
    width: 100%;
    justify-content: center;
}
nav.header__inline-menu span {
    color: white !important;
}

header.header.header--top-center.header--mobile-center.page-width {
    max-width: 100%;
    padding: 0;
}

.header__search {
    padding-left: 5rem;
}

.header__icons {
    padding-right: 5rem;
}
.header__menu-item .icon-caret {
    color: white !important;
}
.header-wrapper--border-bottom {
    border-bottom: none !important;
}
}
</style>

 

And Save. 

Result:

Made4uoRibe_0-1737388050896.png

 

 

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 28 (28)

TheScriptFlow
Shopify Partner
709 49 93

Could you please provide your store url so that I provide you solution code.

- Need a Shopify Specialist? Chat on WhatsApp Or Email at info@thescriptflow.com

- Boost Your Sales with Affiliate Marketing - UpPromote: Affiliate & Referral


- If my solution was helpful, mark it as a solution and hit the like button! And Wait Don't forget to Buy me a Coffee

kayodekevin
Excursionist
26 0 5

namphan
Shopify Partner
2690 349 398

Hi @kayodekevin,

What theme are you using? please send me the store link, I will check it for you

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
kayodekevin
Excursionist
26 0 5

Hi, thank you for your reply! I am using the dawn theme, https://rz591a-jx.myshopify.com/?_ab=0&_fd=0&_sc=1 

namphan
Shopify Partner
2690 349 398

Hi @kayodekevin,

Please go to Customize > Header > Desktop logo position > Top center.

Screenshot.png

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
kayodekevin
Excursionist
26 0 5

Hi, I have already done this but i would like the bottom part where the menu items are to have a solid black background with white text whilst the top part with the logo remains white.

namphan
Shopify Partner
2690 349 398

Hi @kayodekevin,

Please send me the store password, I will check it

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
kayodekevin
Excursionist
26 0 5

Hi Namphan, thank you I will send it now! thuflo

DaisyVo
Shopify Partner
4402 488 581

Hi @kayodekevin 

 

Could you please share the entry password here as well: https://prnt.sc/2Oa1vgbtTcnZ

 

Looking forward to hearing from you soon. Thank you!

 

Best,
Daisy - Avada Support Team.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
kayodekevin
Excursionist
26 0 5

Hi, thank you! I will attach it now:

https://rz591a-jx.myshopify.com/?_ab=0&_fd=0&_sc=1#
 thuflo

Made4uo-Ribe
Shopify Partner
10184 2417 3060

Thanks for the info, try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (min-width: 989px){
nav.header__inline-menu {
    background: black;
    display: flex;
    max-width: 100%;
    width: 100%;
    justify-content: center;
}
nav.header__inline-menu span {
    color: white !important;
}

header.header.header--top-center.header--mobile-center.page-width {
    max-width: 100%;
    padding: 0;
}

.header__search {
    padding-left: 5rem;
}

.header__icons {
    padding-right: 5rem;
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1737385539978.png

    Let me know if you like to remove the border below the nav.

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
kayodekevin
Excursionist
26 0 5

Hi, mine still doesn't seem to be changing! i added it to the base.css I will show you below, but thank you for taking the time to help!
Screenshot 2025-01-20 at 15.21.12.png

Made4uo-Ribe
Shopify Partner
10184 2417 3060

Did you add it? I didnt see the code in your base.css. Please, save after pasting. Or you can also paste it on the theme.liquid. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes"
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag. 

 

<style>
@media only screen and (min-width: 989px){
nav.header__inline-menu {
    background: black;
    display: flex;
    max-width: 100%;
    width: 100%;
    justify-content: center;
}
nav.header__inline-menu span {
    color: white !important;
}

header.header.header--top-center.header--mobile-center.page-width {
    max-width: 100%;
    padding: 0;
}

.header__search {
    padding-left: 5rem;
}

.header__icons {
    padding-right: 5rem;
}
}
</style>

 

  • And Save. 
  • The refresh the preview. 

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
kayodekevin
Excursionist
26 0 5

I will try it in theme.liquid and see if that works. Thank you, I will be back in a few

 

kayodekevin
Excursionist
26 0 5

Okay so it seems that it worked in the theme.liquid! Thank you! Could i just ask how to get rid of that white border? and also is there a way to get the arrow icon to also be white as it has now been hidden since its also black. Appreciate your help

Made4uo-Ribe
Shopify Partner
10184 2417 3060

This is an accepted solution.

Yes, for arrow and border. Replace on this code. 

 

<style>
@media only screen and (min-width: 989px){
nav.header__inline-menu {
    background: black;
    display: flex;
    max-width: 100%;
    width: 100%;
    justify-content: center;
}
nav.header__inline-menu span {
    color: white !important;
}

header.header.header--top-center.header--mobile-center.page-width {
    max-width: 100%;
    padding: 0;
}

.header__search {
    padding-left: 5rem;
}

.header__icons {
    padding-right: 5rem;
}
.header__menu-item .icon-caret {
    color: white !important;
}
.header-wrapper--border-bottom {
    border-bottom: none !important;
}
}
</style>

 

And Save. 

Result:

Made4uoRibe_0-1737388050896.png

 

 

 

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
kayodekevin
Excursionist
26 0 5

Thank you so much for your help! That worked perfectly, I have been looking everywhere but really grateful for your help! 🙂 Have a great day and thanks again!

Made4uo-Ribe
Shopify Partner
10184 2417 3060

Welcome! Would you mind giving a thumbs up? It would greatly help me. Thank you!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
DaisyVo
Shopify Partner
4402 488 581

Hi @kayodekevin 

 

Regarding the design shared in the sample image, I noticed that it comprises two separate sections. However, in their store, the menu is currently placed within a single header block.

 

Additionally, the menu's width is limited and does not span the full width of the header. As a result, if we change the background color to black, only a portion of the header will appear black, as shown in the example.

 

If this is acceptable, I can provide the code for implementation: 

 

@media screen and (min-width: 1024px){
nav.header__inline-menu {
    background: black !important;
}
nav.header__inline-menu * {
    color: white !important;
}
}

 

 

1/ Shopify admin > Online store > Customize: https://prnt.sc/XQ6IDB99kUCd
2/ From the left menu > Theme settings > Open Custom CSS: https://prnt.sc/iDxwa8zBQ4Z-
3/ Copy the code and paste it there 

 

image (9).png

 

Please let me know if it works. Thank you!

 

Best,
Daisy - Avada Support Team.

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
kayodekevin
Excursionist
26 0 5

Hi Daisy, that worked! but is there no way of getting it to be full length? is it the Dawn theme thats the problem? is so would another free theme be a better choice?

kayodekevin
Excursionist
26 0 5

Just wanted to say thank you for your help Daisy! Appreciate the time and effort 🙂

Made4uo-Ribe
Shopify Partner
10184 2417 3060

Hi @kayodekevin 

Please, share your store URL with the password. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
kayodekevin
Excursionist
26 0 5

Hi, thank you! I will attach it now:

https://rz591a-jx.myshopify.com/?_ab=0&_fd=0&_sc=1# 

thuflo

namphan
Shopify Partner
2690 349 398

Hi @kayodekevin,

Please send me the code of header.liquid file, I will check it for you

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
Made4uo-Ribe
Shopify Partner
10184 2417 3060

Hi @kayodekevin 

This is for the footer. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file after the last closing bracket }, add the following CSS code:

 

@media only screen and (min-width: 989px){
.footer__content-top.page-width {
    display: flex;
    width: 100%;
}

.footer__blocks-wrapper.grid.grid--1-col.grid--2-col.grid--4-col-tablet {
    flex: auto;
}

.footer-block--newsletter {
    display: flex;
    align-items: flex-start !important;
    margin-top: 0 !important;
    
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1737461995642.png

    Note: This design is only for desktop.

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
kayodekevin
Excursionist
26 0 5

Hi! thank you for your response! I have added the code but doesn't seem to be reflecting like the last one. Should I add it to the liquid theme?

kayodekevin
Excursionist
26 0 5

Hi! sorry to disturb, I have added the code to the base.css but it doesn't seem to be reflecting like the last one. Would this work if i added it to the liquid theme or would it require a new format?

Made4uo-Ribe
Shopify Partner
10184 2417 3060

Oh, you butcher your base.css. 😅 Let fix it. Follow carefully the instruction. 

This your current base.css. 

Made4uoRibe_0-1737643499536.png

Now make a new line for 3603 add closing bracket }

Made4uoRibe_1-1737643559197.png

Add line Line 3618 add closing bracket }

Made4uoRibe_3-1737643668006.png

Then delete 3634 line closng bracket. 

Made4uoRibe_4-1737643719192.png

And fix spelling for 3630.

Made4uoRibe_5-1737643768425.png

Must be px. 

Now when you fix this always and always paste the code the very last }

Paste after this bracket. 

Made4uoRibe_6-1737643824927.png

 

And Save. 

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.