Re: How To Make Button Smaller

Solved

How To Make Button Smaller

cureblame
Excursionist
35 0 4

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
10196 2420 3064

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 3 (3)

Made4uo-Ribe
Shopify Partner
10196 2420 3064

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
cureblame
Excursionist
35 0 4

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

Vinsinfo
Shopify Partner
491 167 172

@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.
Please reach out to bizdev@vinsinfo.com for any enquires related to Shopify.
Our Services: Custom Theme Development, Theme Customization, Custom Feature Implementation, Data Migration, Custom APP Development, Website Optimization and Google Merchant Center Support