Re: change color of hamburger

Solved

change color of hamburger

LAC1993
Excursionist
14 0 6

Hello,

My account:

www.Lateliercommerce.com

Password: Lac1234

On the main page, I have a hamburger logo that is black (in mobile view in other view there is words that it is white). I want to change the color of the hamburger logo to white.

 

However, when I do this, it becomes invisible because the website theme on the shop pages (all pages except the home page) is white.

 

For example, the cart icon changes color—it is white on the home page but turns black on all other pages.

I want the hamburger logo to be white on the home page and black on all other pages because the background on the other pages is white.

 

LAC1993_0-1724847825376.png

LAC1993_1-1724847849594.png

 

 

LAC
Accepted Solution (1)

topnewyork
Globetrotter
633 114 134

This is an accepted solution.

Hi @LAC1993 , kindly try the below code

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

 

{% if template.name == 'index' %}
    <style>
    .icon-menu .icon-bar, .icon-menu .icon-bar:before, .icon-menu .icon-bar:after {
        background-color: white !important;
     }
    </style>
{% endif %}

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!

Need a Shopify developer?
Hire us at Top New York Web Design
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel

View solution in original post

Replies 5 (5)

BSSCommerce-HDL
Shopify Partner
2305 848 1064

Hi @LAC1993

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

 

{% if template.name == 'index' %}
    <style>
    .icon-menu .icon-bar, .icon-menu .icon-bar:before, .icon-menu .icon-bar:after {
        background-color: #ffff !important;
     }
    </style>
{% endif %}

Hope this can help you,

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

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

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

Made4uo-Ribe
Shopify Partner
8314 1996 2454

Hi @LAC1993 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes"

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag. 

 

{% if template.name == 'index' %}
<style>
.icon-menu .icon-bar,
.icon-menu .icon-bar:before,
.icon-menu .icon-bar:after {
  background-color: #fff;
}
</style>
{% endif %}

 

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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

topnewyork
Globetrotter
633 114 134

This is an accepted solution.

Hi @LAC1993 , kindly try the below code

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

 

{% if template.name == 'index' %}
    <style>
    .icon-menu .icon-bar, .icon-menu .icon-bar:before, .icon-menu .icon-bar:after {
        background-color: white !important;
     }
    </style>
{% endif %}

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!

Need a Shopify developer?
Hire us at Top New York Web Design
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel
LAC1993
Excursionist
14 0 6

thank you. this worked prefect. 

LAC

BSS-TekLabs
Shopify Partner
2350 702 827

- Here is the solution for you @LAC1993 
- 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>
.icon-menu .icon-bar, .icon-menu .icon-bar:before, .icon-menu .icon-bar:after {
    background-color: currentColor !important;
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1724852994407.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