Shopify themes, liquid, logos, and UX
I had this custom code made for my site that inverts the site(dark mode) when you click it. I'm trying to improve my User Experience and want to make the candle smaller. I no longer communicate with the coder that created the code, so I'm lost how to find the size and change it on code. Please let me know
Solved! Go to the solution
This is an accepted solution.
Hi @cureblame
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 "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:
.darkmode-button img {
height: 70px;
width: 40px !important;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
This is an accepted solution.
Hi @cureblame
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 "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:
.darkmode-button img {
height: 70px;
width: 40px !important;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Thanks, It worked. If you have the chance please check my latest post and let me know if you can help.
@cureblame Please follow below steps to make button smaller. Let me know whether it is helpful for you.
.darkmode-button img {
width: 25px !important;
}
Result will be like below,
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025