Hi everyone! Can someone please help me? How do I remove the white space around my pop-up link and move the link upwards?
I tried the other suggestions from similar questions but none of them helped. Thank you in advance!
A user seeks help removing white space around a product page pop-up link and repositioning it upward.
Solutions Provided:
Two community members offered CSS-based fixes:
First approach: Add custom CSS code to theme.liquid file (above </body> tag) targeting .product__info-container and .product-form__submit elements with margin-bottom: 0 !important
Second approach: Add CSS to base.css/style.css/theme.css targeting .product-form__input.product-form__quantity and .product__info-container div:has(.product-form) with margin adjustments
Current Status:
Both solutions successfully removed the initial spacing. However, a new issue emerged: after moving the pop-up, padding now appears under the variant picker. The user is seeking additional guidance to resolve this secondary spacing problem.
The discussion remains ongoing as the original poster needs further assistance with the variant picker padding.
Hi everyone! Can someone please help me? How do I remove the white space around my pop-up link and move the link upwards?
I tried the other suggestions from similar questions but none of them helped. Thank you in advance!
Hey @kaleizlyfe
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hey @kaleizlyfe
Keep the previous code and add this new code above in the end of theme.liquid
.product__info-container>*+*:nth-child(7) {
margin-bottom: 0 !important;
}
.product-form__submit {
margin-bottom: 0 !important;
}
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thank you so much! This worked.
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
Hi @kaleizlyfe
Try this one.
.product__info-container > div:has(.product-form) {
margin-top: 0;
}
.product-form__input.product-form__quantity {
margin-bottom: 0;
}
And Save.
Result:
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!
Thank you so much! This also ended up working! Do you have any suggestions how to remove the padding under my variant picker? I moved the pop-up but now I have the gap again ![]()