Shopify themes, liquid, logos, and UX
Hello,
I am using the sense theme and was hoping to adjust the size of my 'buy now' buttons within the multirow.
example below;
I am hoping someone can help with this.
My website is printreality.co.uk
Thank you.
Solved! Go to the solution
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
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;
}
}
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
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.
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.
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:
If you like to adjust also the font, check this one.
.image-with-text a.button.button--secondary {
font-size: 20px;
}
And Save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
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
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;
}
}
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
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024