-
AuthorPosts
-
October 25, 2023 at 2:25 pm #1423690
Hi
On all our previous websites, the Enfold contact forms were always responsive.
But on a website we are implementing, the Enfold contact forms are not responsive, right it cuts off. What is the reason for this?
Thanks very much.
Best regards
Mike- This topic was modified 1 year ago by YourChoice Informatik GmbH.
October 26, 2023 at 11:14 am #1423761Hey Michael,
Please try the following in Quick CSS under Enfold->General Styling:
@media only screen and (max-width: 400px) { #top .avia_ajax_form .text_input { width: 90%; display: table; margin: 0 auto; } }
Best regards,
RikardOctober 27, 2023 at 8:39 am #1423881Hi Rikard
Thanks for the CSS code. We tryed it out but the contactc form still are not responsiv.
By the way. Why the contact forms are not responsive on this website and on all our other website they are?
Best regards
MikeOctober 29, 2023 at 2:02 pm #1424013Hi,
The issue seems to be that the google badge message on your form has a min width of 300px and on very small screens this is too large.
Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:@media only screen and (max-width: 400px) { #top .avia_ajax_form .av-google-badge-message { min-width: 100%; } }
After applying the css, please clear your browser cache and check.
Best regards,
MikeOctober 30, 2023 at 12:52 pm #1424121Hi Mike
Thanks very much for the CSS code.
With this code the forms are responsive.
But one question I still have. Why we have to use this CSS code here? We have a lot of other websites which also have contact forms with this google badge and there this is no problem and it is responsive without this CSS code.
See some examples in the private content section.
Best regards
MikeNovember 1, 2023 at 11:37 am #1424308Hi,
Thanks for the feedback, I see the same issue on all three site that you linked to, perhaps you didn’t check them on very small screen sizes, under 400px.
You could add this css to all of your sites and it would help them also.Best regards,
MikeNovember 1, 2023 at 11:57 am #1424309Hi Mike
Thanks for your response.
But why we have this issue and need this code?
Is it because we added this code to functions.php?Perhaps this code is not needed anymore because Enfold now opens this links in new tabs?
Best regards
MikeNovember 1, 2023 at 3:40 pm #1424326Hi,
I don’t think the issue is related to the code you added to the functions.php, it is because the google badge message has a min width of 300px and on very small screens, this is too large, so the solution is to use the css above.
Please give this a try.Best regards,
MikeNovember 1, 2023 at 3:46 pm #1424327Hi Mike
Ok, so we will add this to all our websites where we have a contact form with Google reCAPTCHA.
Is the code in functions.php still needed?
Best regards
MikeNovember 1, 2023 at 4:36 pm #1424338Hi,
I’m not sure about your functions.php code, it seems to be from 2020, I recommend testing without it.Best regards,
MikeNovember 2, 2023 at 6:42 pm #1424433Hi Mike
I tested it. The code in the functions.php is still needed for that the links of the google badge are opened in a new tab.
Is that correct that every one who uses this google badge has to use this CSS code for that the forms are responsive?
Thanks very much.
Best regards
MikeNovember 3, 2023 at 4:53 pm #1424558Hi,
Yes this is true, due to your customization.Best regards,
MikeNovember 4, 2023 at 3:40 pm #1424642Hi Mike
Ok, thanks for your response.
Yes, but this customization is needed for that the google links are opened in a new tab.
But now we have a CSS fix for that, so all is ok ;-)
You can close this issue.
Best regards
Mike -
AuthorPosts
- The topic ‘Contact Form not responsive’ is closed to new replies.