Tagged: CONTACT FORM
-
AuthorPosts
-
June 23, 2016 at 10:14 pm #652760
Hello. Please see this image for desirables.
Thank you,
RyanJune 28, 2016 at 4:38 am #654041Hey rlogan2334,
Thank you for using Enfold.
Use this to change the color of the placeholder:
::-webkit-input-placeholder { color: #ffffff; } :-moz-placeholder { /* Firefox 18- */ color: #ffffff; } ::-moz-placeholder { /* Firefox 19+ */ color: #ffffff; } :-ms-input-placeholder { color: #ffffff; }
This one for the option element:
select { color: #ffffff !important; } select option { color: #000000 !important; }
Unfortunately, you can’t style or add a transparent background to the option value.
Best regards,
IsmaelOctober 14, 2016 at 1:20 am #698940Hello. Circling back to this. My image link doesn’t work, but simply put, here is what I’m trying to do.
-All contract form placeholder text color is White, including the Subject dropdown placeholder Note: All dropdown text should remain Black, for visibility
-All asterisks are WhiteThank you,
RyanOctober 18, 2016 at 11:04 am #700569Hi,
1.) Add this in the functions.php file:
add_action('wp_footer', 'ava_custom_script'); function ava_custom_script(){ ?> <script type="text/javascript"> (function($) { function a() { var select = $('#top .entry-content-wrapper select'); select.css('color','#ffffff'); select.change(function() { var current = $('#top .entry-content-wrapper select').val(); if (current != 'null') { select.css('color','#000000'); } else { select.css('color','#ffffff'); } }); } a(); })(jQuery); </script> <?php }
.. and the following code in the Quick CSS field:
#top .entry-content-wrapper select option { color: #000000; }
2.) Unfortunately, you cannot define a different color for the asterisk because it is included in the placeholder attribute.
UPDATE: We added this css code for the placeholder.
::-webkit-input-placeholder { color: #ffffff !important; } :-moz-placeholder { /* Firefox 18- */ color: #ffffff !important; } ::-moz-placeholder { /* Firefox 19+ */ color: #ffffff !important; } :-ms-input-placeholder { color: #ffffff !important; }
Best regards,
IsmaelOctober 21, 2016 at 4:02 pm #702487Worked beautifully….thank you so much!!
-
AuthorPosts
- The topic ‘Contact Form Styling’ is closed to new replies.