Shopify themes, liquid, logos, and UX
Hi
I have an Empire theme - I have a white header background. It looks like the cart icon is also white as shown in the screenshot. I need the cart icon to be in black.
Solved! Go to the solution
This is an accepted solution.
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>
.site-header-right span.site-header-cart-icon.site-header-cart-icon--svg {
color: #000 !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
This is an accepted solution.
Hi @mqecommerce
Please, be careful of adding some codes in your store. You have this code which is making the cart white.
You can remove the code above or add another code. It your choice.
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 "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:
.site-header-right .site-header-cart--button {
color: black !important;
}
And save.
Result:
Note: If the code have the !important that mean its forcely calling to change. Try to add without the !important if it listens. If not then add. Please, refresh your browser when you add some changes for proper outcome.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hello @mqecommerce
Can you share store URL?
This is an accepted solution.
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>
.site-header-right span.site-header-cart-icon.site-header-cart-icon--svg {
color: #000 !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
This will work, but it is not the proper way to change display styles for a theme. In the future it may make changing colors very difficult.
This is an accepted solution.
Hi @mqecommerce
Please, be careful of adding some codes in your store. You have this code which is making the cart white.
You can remove the code above or add another code. It your choice.
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 "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:
.site-header-right .site-header-cart--button {
color: black !important;
}
And save.
Result:
Note: If the code have the !important that mean its forcely calling to change. Try to add without the !important if it listens. If not then add. Please, refresh your browser when you add some changes for proper outcome.
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024