1

I am running a wordpress site with contact form 7. I have signed up to reCaptcha and everything is working fine except all the fields on the form are right aligned but the reCaptcha is aligned to the left.

Is there anyway to align it to the right like the rest of the fields?

Heres a screenshot from my local machine: Picture of reCaptcha aligning to left on contact form 7

closed as off-topic by Rarst, fuxia Oct 19 '17 at 12:34

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

3

You can't do that directly inside the CF7 plugin you need to modify the CSS.

Add the following to your theme's style.css file:

.wpcf7-recaptcha > div {
    margin: 0 0 15px auto;
}

PLEASE BE NOTED:

If you add the above code, it will take effect to all your recaptcha fields in every forms on your website.

Often times, we would like to only do this to a certain form, this is how you can do it:

First: Add an ID to the recaptcha in Contact Form 7

[recaptcha id:enquiryFormRecaptcha]

Second: Customize your CSS

#enquiryFormRecaptcha > div {
    margin: 0 auto 0 auto;
}

Good luck!

Not the answer you're looking for? Browse other questions tagged or ask your own question.