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 113 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
2020 708 865

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 😍

 

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


B2B Solution & Custom Pricing | Product Labels by BSS


Need help from our expert? Kindly share your request with us via community@bsscommerce.com


BSS Commerce - Full-service eCommerce Agency

Made4uo-Ribe
Shopify Partner
7703 1859 2275

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 113 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
1973 566 666

- 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 .
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
BSS Commerce - Full-service eCommerce Agency

For give Gift to customers and Upsell in Cart, check out Salepify: Free Gifts with purchase


Post purchase upsell, downsell offers to improve sales and AOV
Salemate Post Purchase Upsell