-
AuthorPosts
-
September 24, 2019 at 7:17 pm #1141522
Hi, how can I add enfold form styles to gravity forms? Would really like to use Enfold contact form styles as it has very nicely styled fonts.
September 25, 2019 at 9:45 am #1141705Hey geraldinetay27,
Can you give us a link to your page with gravity forms?
Best regards,
NikkoSeptember 25, 2019 at 10:27 am #1141727This reply has been marked as private.September 25, 2019 at 7:07 pm #1141946Hi geraldinetay27,
https://cl.ly/4c2f6e570801 Here is what I am seeing, how do you need to change it?
Best regards,
VictoriaSeptember 25, 2019 at 7:34 pm #1141958Hi Victoria, I am hoping that it will look something like this
Is there a documentation I could refer to? :)
September 25, 2019 at 8:22 pm #1141992Hi geraldinetay27,
You need to set a background image for the color section where the form is added. And then we can help you to change the css.
Here are the docs for you:Best regards,
VictoriaSeptember 26, 2019 at 5:51 am #1142115This reply has been marked as private.September 26, 2019 at 4:07 pm #1142335Hi geraldinetay27,
The image needs to be set up so that we can see which colors the form should have. If you use a gray image, the white colors will be invisible. What background is the color section going to have?
Best regards,
VictoriaSeptember 26, 2019 at 5:24 pm #1142424Hi Victoria, it will be based on the current color scheme. There will not be an image.
https://www.dropbox.com/s/kygxm1ctjo4m17y/Contact%20Form.jpg?dl=0September 27, 2019 at 3:58 am #1142553Hi geraldinetay27,
We have added this css code in Quick CSS, located in Enfold > General Styling:
#top .gfield_label, #top .ginput_container label, #top .gform_fields ::placeholder { color: white; } #top .gfield_required { color: red; } #top .ginput_container input[type="text"], #top .ginput_container select, #top .ginput_container textarea { color: #fff; border-color: #fff; border-width: 2px !important; background-color: transparent; }
Let us know if you need further assistance.
Best regards,
NikkoSeptember 27, 2019 at 3:33 pm #1142779Thank you so much Nikko! =)
There is a small issue though.
The dropdown shows the text in white while the dropdown arrow looks a bit weird. Could you suggest the css for that please?https://www.dropbox.com/s/kygxm1ctjo4m17y/Contact%20Form.jpg?dl=0
September 27, 2019 at 4:53 pm #1142816Hi geraldinetay27,
We could suggest a css code for it but we don’t have an image (white dropdown arrow) that’s suitable for your form, here’s the css code that you can add:
#top .entry-content-wrapper select { background-image: url(image_url); }
Just replace image_url with a suitable image.
You can upload the image in Media > Add New.
Hope this helps.Best regards,
NikkoSeptember 27, 2019 at 5:02 pm #1142828Hi Nikko,
Thanks for the response.1. How do I use the down arrow from entypo-fontello instead? https://www.dropbox.com/s/qs0acewl3vfijd3/Down%20Arrow.jpg?dl=0
2.The dropdown shows the text in white. Is there a css you could recommend?
3. How do I style the buttons to have a white outline and centralised instead?
September 29, 2019 at 5:16 am #1143060Hi geraldinetay27,
I replaced the code I gave to this one.
#top .gfield_label, #top .ginput_container label, #top .gform_fields ::placeholder { color: white; } #top .gfield_required { color: red; } #top .ginput_container input[type="text"], #top .ginput_container select, #top .ginput_container textarea { color: #fff; border-color: #fff; border-width: 2px !important; background-color: transparent; background-image: none; } #top .ginput_container select option { color: #333; } #top .ginput_container_select { position: relative; } #top .ginput_container_select::after { content: '\e883'; display: block; color: white; font-family: 'entypo-fontello'; position: absolute; right: 12px; top: 6px; z-index: -1; }
1. The two code blocks at the bottom of the new code I gave is the answer to this. #top .ginput_container_select and #top .ginput_container_select::after
2. The answer is the 3rd to the last block: #top .ginput_container select option
3. I have added this code, the first code block centers it, while the 2nd one adds the white outline.
#top .gform_wrapper .gform_footer.top_label { text-align: center; } #top .gform_wrapper input.gform_button { border: 2px solid white; }
Best regards,
NikkoOctober 1, 2019 at 5:20 am #1143565Hi Nikko,
Thanks so much! =)If I would like to set a different button color on hover, how should I do so?
October 1, 2019 at 10:43 am #1143639Hi geraldinetay27,
Please add this css code and just replace the background color:
#top .gform_wrapper input.gform_button:hover { background-color: blue; }
Best regards,
NikkoOctober 17, 2019 at 5:37 am #1148774Hi Nikko, thanks! I would like submit form button to be transparent. How do I do that?
October 18, 2019 at 1:52 am #1149070Hi geraldinetay27,
Try adding this css code, place it above the last code I gave.
#top .gform_wrapper input.gform_button { background-color: transparent; }
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.