Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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 7 years, 6 months ago by Uros.
    #703000

    Hey 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,
    Nikko

    #703010

    sorry it didn’t work

    #703119

    Hi,

    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,
    Nikko

    #703166

    please do not deactivate only woocommerc plugins

    #703529

    Hi 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,
    Nikko

    #703737

    thanks Nikko

    #703787

    Hi,

    You’re most welcome. Thanks for using Enfold :)

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘contact form’ is closed to new replies.