Solved

How To Make Button Smaller

cureblame
Excursionist
25 0 3

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 knowScreenshot 2024-04-19 155838.png

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
6072 1460 1798

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:

Made4uoRibe_0-1713560939171.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


View solution in original post

Replies 3 (3)

Made4uo-Ribe
Shopify Partner
6072 1460 1798

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:

Made4uoRibe_0-1713560939171.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
For FREE, premium codes, and trusted, knowledgeable Shopify developers, visit us at

Made4uo.com


cureblame
Excursionist
25 0 3

Thanks, It worked. If you have the chance please check my latest post and let me know if you can help.

Vinsinfo
Shopify Partner
268 96 87

@cureblame Please follow below steps to make button smaller. Let me know whether it is helpful for you.

 
1. From admin, go to "Online Store" -> "Themes".
2. Click action button from the current theme and select "Edit code".
3. Search for "base.css" file and paste the below code at the bottom of the file.

 

.darkmode-button img {
    width: 25px !important;
}

 

Vinsinfo_0-1713598377317.png

 

 

Result will be like below,

Vinsinfo_1-1713598466593.png

 

NOTE: You can change the width as per your need.
 
Please provide your support by click "Like" and "Accepted" if our solution works for you. Thanks for your support.