Hi! As the title says, I am using a pop-up form from Shopify forms app and I want to do two things mainly: change the width of the pop-up so that it’s horizontal on laptop and vertical on mobile; change the corner radius, so that it’s completely square, not round.
If the CSS didn’t work, it’s likely because the Shopify Forms app uses an iframe, which means your theme’s CSS can’t directly override its styles.
To fix this, you’ll need to use Custom CSS inside the Shopify Forms app editor itself:
Go to Marketing → Forms → select your pop-up form.
Under Design → Custom CSS, paste the code below:
/* Make popup horizontal on desktop and vertical on mobile */
.shopify-form-popup {
display: flex !important;
flex-direction: row !important;
width: 600px !important;
border-radius: 0px !important;
}
@media (max-width: 768px) {
.shopify-form-popup {
flex-direction: column !important;
width: 90% !important;
}
}
If your form doesn’t have a “Custom CSS” section, you can target the pop-up using iframe CSS injection or create a custom pop-up block directly in your theme for more control.
Hey @beatrizferreira
I had the same issue with the Shopify Forms pop-up recently, by default, it uses rounded corners and a fixed width that doesn’t look great across all devices.
Here’s what worked for me:
Go to Online Store → Themes → Edit code Open your base.css (or theme.css) file and add this at the very bottom:
/* Make popup square corners */
.shopify-form-popup__container {
border-radius: 0 !important;
}
/* Make popup wider on desktop and auto on mobile */
@media (min-width: 992px) {
.shopify-form-popup__container {
width: 800px !important;
max-width: 90%;
}
}
@media (max-width: 991px) {
.shopify-form-popup__container {
width: 90% !important;
}
}
That should make the pop-up horizontal and wide on desktop, but stacked vertically on mobile, with completely square corners.
I had to do this for my own store’s discount pop-up, looks much cleaner now and fits the brand better.
Are you using it just for newsletter signups or also for first-order discount pop-ups?
If your popup doesn’t respond, inspect it in Chrome → right-click → “Inspect Element” → and check the exact class name (it might differ slightly by theme). You can then replace .shopify-form-popup with that class.
Hope this helps!
If you ever need help customizing Shopify popups or themes, I provide professional and friendly services at affordable rates.
– Hammad | Shopify Developer
Add it near the bottom of your base.css, then clear cache or check in incognito, you should see the corners go square and width adjust on reload.
I had something similar happen on my end when I was customizing my newsletter popup, Shopify sometimes wraps forms differently depending on the theme version.
And if you are still finding it difficult, you can send me your email so we can discuss more there and share ideas together. If that is okay by you.
Looks like you’ve resorted to using theme built-in newsletter form…
It is possible to change styles of forms created with Shopify Forms app, but it should be done in a special way because of the way form is added to your page.
Directly adding CSS rules would not work.
If you want to try it again, add it to your store again or add your Forms form to a draft theme and share a preview link to that theme.
I will be able to give you the working code.