Re: How to change Button size with text (sense theme)

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
2970 571 919

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)

niraj_patel
Shopify Partner
2378 514 508

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.

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
Shopify Partner
691 86 102

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
9559 2277 2824

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!

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.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

diego_ezfy
Shopify Partner
2970 571 919

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