Re: Header Customization

Solved

Header Customization

Dan1213
Excursionist
20 0 6

My Store URL : DanLo

I have menus in the header section of my Shopify store, and I want to move these menus slightly upwards without increasing the overall header size. I also want to leave a small gap below the menus and reduce the size of the header below the menus. However, I want these changes to only affect the desktop view, not the mobile view. Could you provide a custom CSS code for this?

Accepted Solution (1)

BSS-TekLabs
Shopify Partner
2350 702 827

This is an accepted solution.

- Here is the solution for you @Dan1213 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the theme.liquid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.

<style>
@media screen and (min-width: 990px) {
    .header:not(.header--middle-left,.header--middle-center) .header__inline-menu {
        margin-top: 0 !important;
        margin-bottom: 1.05rem !important;
    }
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1724859640966.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 4 (4)

BSS-TekLabs
Shopify Partner
2350 702 827

This is an accepted solution.

- Here is the solution for you @Dan1213 
- Please follow these steps:

z5686811214059_e66de1953f1db631f9134af5cdb796ad.jpg

- Then find the theme.liquid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.

<style>
@media screen and (min-width: 990px) {
    .header:not(.header--middle-left,.header--middle-center) .header__inline-menu {
        margin-top: 0 !important;
        margin-bottom: 1.05rem !important;
    }
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1724859640966.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Dan1213
Excursionist
20 0 6

This code works fine. Additionally, I want to reduce the size of header from both sides i.e., above and below as well. Please help me with that as well

 

BSS-TekLabs
Shopify Partner
2350 702 827

BSSTekLabs_0-1724860900188.png

Do you want like this? @Dan1213 

 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

niraj_patel
Shopify Partner
2378 514 512

Hello @Dan1213 

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>
  .header nav.header__inline-menu {
      position: relative;
      top: -10px;
  }
</style>

niraj_patel_0-1724859781703.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]