How can I make email form horizontally aligned

Hey guys!

Recently just installed the email form plugin. After setting it up with MailChimp, it looks like this:

I was wondering if there was a way to place the text boxes horizontally instead of placing them vertically…

Thanks,
Alec

Hey Alec,

You should be able to do so by adding some custom CSS on the site. To get you started, please add this following code in X > Theme Options > CSS:

.mc4wp-form .mc4wp-form-fields > div {
    display: flex;
}

.mc4wp-form .mc4wp-form-fields > div .titlewrap:last-child {
    display: flex;
}

.mc4wp-form .mc4wp-form-fields > div .titlewrap:last-child p:last-child {
    margin-bottom: 0;
    align-self: center;
}

.mc4wp-form .mc4wp-form-fields > div .titlewrap:last-child p:last-child input {
    font-size: 0.9em;
    padding: 7px 10px;
}

Kindly note that since this is a custom code that changes the default behavior/display of the theme, you will be responsible to maintain or update the code in case you require further changes or if the code stops working in future updates.

Hope this helps.

1 Like

Hey @Jade

Thanks so much for that, worked a charm.

Just another CSS question regarding this…

I was able to position everything as shown in this photo, including the subscribe button.

However, when changing the font colour/size or background colour of the button in the x theme css, no changes occur.

As shown above, I was able to position the button, but when adding the CSS just mentioned, no change occurs.

Thanks in advance!
Alec

Hi Alec,

Please use the selector: .mc4wp-form .mc4wp-form-fields > div .subscribebutton input

Hope this helps.

Ah perfect, thanks so much Jade :smile:.

Also, any idea of the selector I’d use if I wanted to change the position/font of the success message?

Thanks Jade,
Alec

Hey @Jade,

Additionally, when the subscribe button is pressed and the page reloaded, the page has moved down quite a bit, from this:

To this:

Thanks Jade :smile:
Alec

Hi Alec,

Please check the link the I provided you as it has some steps and tutorials on how to get the correct CSS Selectors.

Also, I tried to check the site that is attached to your license but there is a coming soon page active now which stops me from accessing the site and checking for the CSS selectors.

Hey @Jade

Okay thanks for that, followed along and fixed it :smile:

The page still rolls down quite a bit when subscribing…I have disabled the coming soon page as well…

Thanks Jade,
Alec

When reloading the page as well after subscribing, this box appears…anyway to disable it?

Hi Alec,

There is still a coming soon page active:

Sorry, should all be up now.

Hi Alec,

That is actually a browser message to prevent browsers from accidentally duplicating POST actions on forms.
Though I tried it on my end and can’t seem to replicate it. Please check your browser version and make sure it’s the latest.

https://www.google.com/search?rlz=1C1CHBF_enPH819PH819&ei=3ZDeXP7xN8K4mAXGmZvQDw&q=confirm+resubmission+browser&oq=confirm+resubmission+browser&gs_l=psy-ab.3..0i22i30.57794.59344..59652...0.0..0.461.1947.0j5j2j1j1…0…1…gws-wiz…0i71j0i67j0.JbOM3okMh1g

Thanks

Hey @paul.r

Ok all good, will look into it and see what I can do,

Thanks so much :smile:
Alec

You’re always welcome Alec.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.