Solved

How to change Button size with text (sense theme)

Printatme
Explorer
55 0 7

Hello,

 

I am using the sense theme and was hoping to adjust the size of my 'buy now' buttons within the multirow.

 

example below;

 

Printatme_0-1710774081626.png

 

I am hoping someone can help with this.

 

My website is printreality.co.uk

Thank you.

Accepted Solution (1)

diego_ezfy
Shopify Partner
2967 569 892

This is an accepted solution.

@Printatme, use the following code to add different values for desktop/mobile:

1. From the customize page, click on the Multirow section

diego_ezfy_0-1710781209325.png

 


2. Scroll all the way down, click on "custom CSS" and paste the following code in:

.button {
  font-size: 25px !important;
  padding: 10px 20px !important;
}

@media (max-width: 749px) {
  .button {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }
}


diego_ezfy_1-1710781241457.png

 

25px = font size on desktop

10px = button's top/bottom padding on desktop

20px = button's left/right padding on desktop

and the code below:

16px = font size on mobile

10px = button's top/bottom padding on mobile

20px = button's left/right padding on mobile



If it helps you please click on the "like" button and mark this answer as a solution!

Thank you.

Kind regards,
Diego

View solution in original post

Replies 4 (4)

techlyser_web
Shopify Partner
1423 268 282

Hello @Printatme 

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>
  .multirow .button{
     padding: 0 5rem; /*ajust according to you*/
  }
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Techlyser || Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

PageFly-Theodor
Globetrotter
512 69 76

Hi @Printatme 


This is Theodore from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
  .multirow .button{
     padding: 0 30px; 
  }
</style>

Hope this can help you solve the issue

 

Best regards,

Theodore | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

Made4uo-Ribe
Shopify Partner
5548 1330 1644

Hi @Printatme 

I just like to clarify, adjust the width and hieght? not included the font? 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:

 

.image-with-text a.button.button--secondary {
    min-width: 14rem;
    min-height: 6rem;
}

 

And Save. 

Result:

Made4uoRibe_0-1710775778550.png

If you like to adjust also the font, check this one. 

 

.image-with-text a.button.button--secondary {
    font-size: 20px;
}

 

And Save. 

Result:

Made4uoRibe_1-1710775870014.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.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


diego_ezfy
Shopify Partner
2967 569 892

This is an accepted solution.

@Printatme, use the following code to add different values for desktop/mobile:

1. From the customize page, click on the Multirow section

diego_ezfy_0-1710781209325.png

 


2. Scroll all the way down, click on "custom CSS" and paste the following code in:

.button {
  font-size: 25px !important;
  padding: 10px 20px !important;
}

@media (max-width: 749px) {
  .button {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }
}


diego_ezfy_1-1710781241457.png

 

25px = font size on desktop

10px = button's top/bottom padding on desktop

20px = button's left/right padding on desktop

and the code below:

16px = font size on mobile

10px = button's top/bottom padding on mobile

20px = button's left/right padding on mobile



If it helps you please click on the "like" button and mark this answer as a solution!

Thank you.

Kind regards,
Diego