How do you make the size of the Popup link smaller. It takes up too much space on the product page. Please help asap. URL is www.whoglobal.shop.
Topic summary
A user seeks to reduce the size of a “Size Guide” popup link button on their Shopify product page, which currently occupies excessive space.
Initial Problem:
- The popup link button appears too large on the product page
- Multiple helpers initially misunderstood, providing solutions to resize the popup modal itself rather than the button
Solution Progress:
- After clarification, helpers provided CSS code to reduce the button’s font size (from default to 1rem)
- The font size reduction worked, but created a new issue: excessive padding/spacing above and below the button
Current Status:
- Helpers offered additional CSS code to reduce margin spacing around the button
- The user reports the spacing fix isn’t working despite implementing the suggested code in theme.liquid
- Screenshots show the code has been added, but the visual result remains unchanged
- The discussion remains unresolved as the spacing issue persists
Technical Details:
- Solutions involve adding custom CSS to theme.liquid file before
</head>tag - Target selectors include
.product-popup-modal__openerand specific button IDs
Hi @samueljoonjung , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks
Please, share your store URL. Thanks!
Hi @samueljoonjung , can you share us your store url?
I just did. Please check
- Go to Online Store → Theme → Edit code.
- Open your theme.liquid file
- In theme.liquid, paste the below code before
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Thanks for te info, 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:
@media screen and (min-width: 750px) {
.product-popup-modal[open] .product-popup-modal__content {
width: 50%;
height:50%;
}
}
-
And Save.
-
Result:
-
Im not sure how small you want it to be, but the default size are width: 70%, height: 80%. You can change it base in your preference, but please not to small. This changes is only for tablet, and dekstop not include the mobile.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @samueljoonjung , you can follow these steps:
Step 1: Open Online Store → Themes → Edit code
Step 2: Find section-main-product.css file
Step 3: Paste this code at the bottom of the file
.product-popup-modal__opener, .product__inventory {
margin: 0 !important;
}
Thanks but I am talking about the button itself. Not what it opens. The button/link “Size Guide” is too large. I want it smaller.
- Go to Online Store → Theme → Edit code.
- Open your theme.liquid file
- In theme.liquid, paste the below code before
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
That worked great but now the space above and below the “Size Guide” is too large. How can i adjust that padding
@samueljoonjung check this code
oh, the font you mean. Same instruction.
button#ProductPopup-popup_TGKL9w {
font-size: 1rem !important;
}
modal-opener.product-popup-modal__opener.quick-add-hidden {
margin: 0;
}
And Save.
Result:
I also lesser some space.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
This didn’t work. I pasted right after the prior code you gave me. Is that what I was supposed to do?
@samueljoonjung it’s working fine here, try again please
use this code instead of above code..
.product__info-container {
margin: 2px;
}
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!






