Shopify themes, liquid, logos, and UX
Hi there - I'm trying to add a pop-up block to my product page on studio theme and there are two issues:
1. It shows up as white text and I can't figure out how to change the text color or size.
2. There's a huge amount of padding around it that I'd like to remove
I can't seem to figure out how to customize the look of the pop-up block and would love help.
Shop URL: https://shop.betterwithbirds.com/
Solved! Go to the solution
This is an accepted solution.
Hi @Jaymi ,
Or you can follow these specific steps to customize the button more easily.
Step 1: Go to Admin -> Online store -> Theme > Edit code:
Step 2: Search for the file base.css. And add this code snippet to the end of the file.
section#MainProduct-template--22756906565938__main {
padding-bottom: 20px !important;
}
modal-opener.product-popup-modal__opener.quick-add-hidden {
margin: 0 !important;
margin-bottom: -30px !important;
}
modal-opener.product-popup-modal__opener.quick-add-hidden button {
color: #000000 !important;
}
Step 3: Save and reload home page.
=>> The result: I make color black for button and reduce padding of it.
I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.
Have a nice day sir!
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Hi @Jaymi,
I hope you are doing well,
You can change that block format by following this instruction
Step 1: Online store > Themes > Three-dot button > Edit code
Step 2: Find and Open theme.liquid file
Step 3: Add these codes right after the <head> tag
<style>
modal-opener.product-popup-modal__opener.quick-add-hidden {
background-color: red;
margin: unset;
padding-left: 13px;
}
</style>
I hope this is useful to you!!! 🤗 If you need change color, just change color value in the code.
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Thank you so much! Trying this out...
This is an accepted solution.
Hi @Jaymi ,
Or you can follow these specific steps to customize the button more easily.
Step 1: Go to Admin -> Online store -> Theme > Edit code:
Step 2: Search for the file base.css. And add this code snippet to the end of the file.
section#MainProduct-template--22756906565938__main {
padding-bottom: 20px !important;
}
modal-opener.product-popup-modal__opener.quick-add-hidden {
margin: 0 !important;
margin-bottom: -30px !important;
}
modal-opener.product-popup-modal__opener.quick-add-hidden button {
color: #000000 !important;
}
Step 3: Save and reload home page.
=>> The result: I make color black for button and reduce padding of it.
I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.
Have a nice day sir!
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
This is exactly what I needed and the coding worked perfectly. Thank you so much!
Hi @Jaymi ,
To be simple is to be great. We're happy to see that our suggestion helped you solve the issue, bro.
Can you kindly give us some likes? This can be a reference for other merchants if they have an issue like you and greatly motivate us to contribute to our community.
Thanks in advance.
Have a nice day!! ^^
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Is there also a way to change the size of the text?
Dear my friend @Jaymi ,
You can completely change the size of the text by adding a CSS code to base.css with the font-size property.
What you need to do is find the correct class wrapping the text you want to resize and add the attribute:
In my example, I change the font-size of product title on your Product pages:
.product__title h1 {
font-size: 50px !important;
}
And the result will be:
😍 It's such my honor to help you, bro.
If they are helpful, please give us likes and mark as the solution.
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
So helpful!! Do you happen to know which CSS wrapper is around the pop-up block to adjust that text size?
Yes my friend @Jaymi ,
What exactly section you want to change text size, I haved check your site, I didn't see pop-up block size chart on your product page.
Can you kindly share the details of it (screenshot/ record) with us?
We will check it and suggest you a solution if possible.
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Hello @Jaymi
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>
.product button.product-popup-modal__button.link {
color: #000 !important;
background: #57c9a3 !important;
padding-left: 1.3rem;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025