Shopify themes, liquid, logos, and UX
Hello,
My account:
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.
Solved! Go to the solution
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!
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
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!
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!
thank you. this worked prefect.
- Here is the solution for you @LAC1993
- Please follow these steps:
- 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:
- 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
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025