-
AuthorPosts
-
October 22, 2016 at 12:17 pm #702802
Hi guys
Can you please help me how to put name of field above field and also keep placeholder name?
- This topic was modified 8 years, 1 month ago by Uros.
October 23, 2016 at 2:54 pm #703000Hey Uroš,
In your contact form kindly uncheck Hide Form Labels then add this code in functions.php:
function add_custom_placeholder(){ ?> <script> jQuery(window).load(function(){ jQuery('.postid-3133 input#avia_1_1').attr('placeholder', 'First Name *'); jQuery('.postid-3133 input#avia_3_1').attr('placeholder','Last Name *'); jQuery('.postid-3133 input#avia_4_1').attr('placeholder','Email *'); jQuery('.postid-3133 input#avia_5_1').attr('placeholder','Skype ID'); jQuery('.postid-3133 input#avia_6_1').attr('placeholder','Country *'); jQuery('.postid-3133 input#avia_7_1').attr('placeholder','Company *'); jQuery('.postid-3133 input#avia_8_1').attr('placeholder','Telephone'); jQuery('.postid-3133 textarea#avia_9_1').attr('placeholder','Message *'); }); </script> <?php } add_action('wp_footer', 'add_custom_placeholder');
This code is page specific to avoid conflicting with other forms. Let us know if it works :)
Best regards,
NikkoOctober 23, 2016 at 4:17 pm #703010sorry it didn’t work
October 24, 2016 at 6:25 am #703119Hi,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
- The URL to the login screen.
- A valid username (with full administration capabilities).
- As well as a password for that username.
- permission to deactivate plugins if necessary.
Best regards,
NikkoOctober 24, 2016 at 9:42 am #703166please do not deactivate only woocommerc plugins
October 25, 2016 at 3:06 am #703529Hi Uros,
This is fixed. No plugins are disabled during the troubleshooting process. It’s my bad the code I gave was the one I made when testing on my end, this is the fixed version of the code:
function add_custom_placeholder(){ ?> <script> jQuery(window).load(function(){ jQuery('.page-id-103 input#avia_2_1').attr('placeholder', 'First Name *'); jQuery('.page-id-103 input#avia_3_1').attr('placeholder','Last Name *'); jQuery('.page-id-103 input#avia_4_1').attr('placeholder','Email *'); jQuery('.page-id-103 input#avia_5_1').attr('placeholder','Skype ID'); jQuery('.page-id-103 input#avia_6_1').attr('placeholder','Country *'); jQuery('.page-id-103 input#avia_7_1').attr('placeholder','Company *'); jQuery('.page-id-103 input#avia_8_1').attr('placeholder','Telephone'); jQuery('.page-id-103 textarea#avia_9_1').attr('placeholder','Message *'); }); </script> <?php } add_action('wp_footer', 'add_custom_placeholder');
Let us know if you need anything that is related to this topic. Thanks for using Enfold :)
Best regards,
NikkoOctober 25, 2016 at 12:39 pm #703737thanks Nikko
October 25, 2016 at 2:14 pm #703787Hi,
You’re most welcome. Thanks for using Enfold :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘contact form’ is closed to new replies.