Site logo

Archived topic

Newsletter subscribe button in mobile view

7 replies · Started by Christopher on July 31, 2022

Viewing posts 1–8 of 8

Hey guys,

I just released my website finally, thanks again for your help on that!

https://montenegrotower.com/

If you scroll down you will see a subscribe button, which looks good on the mobile view in my browser but not on my phone with the font being vertical. Any idea how to fix it?

Thanks
Chris

Hi Christopher,

How should it look like on mobile?

You have this code in your custom CSS for media query max-width:420px -

form.wp-block-getwid-mailchimp__form .wp-block-getwid-mailchimp__submit,
form.wp-block-getwid-mailchimp__form .wp-block-getwid-mailchimp__submit div,
form.wp-block-getwid-mailchimp__form .wp-block-getwid-mailchimp__submit button {
flex: 1;
width: 100%;
}

The flex:1 rule is causing it to go vertical.

Thanks Fernando,

it should look like this and this is how it looks like for me when I view it in Chrome, reduzing the size as much as possible of the window to recreate the mobile viewport:
https://www.screencast.com/t/oGnAAgG78Igo

but on my actual phone its vertical.

I tried changing flex to 0 but the text is still vertical on my phone. Testing in incognito mode.

Thanks

Try setting it to something like 40%.

Oh. I meant the flex.

Something like this for instance:

flex: 40%;
width: 100%;

Thanks! That worked, cheers :)

You’re welcome! Cheers! :)

This archived topic is closed to new replies.