Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
If you scroll down to the Rediscover your Tea image banner, how can the Buy Now and Learn Stuff button width be edited to be less wide?
Thanks
Solved! Go to the solution
This is an accepted solution.
Hello @empiricalarby 👋
Inside Shopify Admin, you can go to Edit theme code, open file base.css and add this code at the bottom
.banner__buttons .button {
width: 12rem !important;
margin: auto !important;
padding: 0 !important;
}
The result
Hope that helps!
You can set a max-width by navigating to assets --> base.css and adding a CSS rule like this:
.banner__buttons .button {
max-width: 150px;
}
Alternatively, you can add the code to the Custom CSS section inside the theme editor.
This is an accepted solution.
Hello @empiricalarby 👋
Inside Shopify Admin, you can go to Edit theme code, open file base.css and add this code at the bottom
.banner__buttons .button {
width: 12rem !important;
margin: auto !important;
padding: 0 !important;
}
The result
Hope that helps!
Awesome, thanks. How do I make these buttons sit one above the other instead of side by side? Thank you
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024