Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #360535

    Hi there!

    Thanks so much for the great support! We are almost there!

    Quick question about the contact section we can include in enfold.

    http://alextomaszewski.com/contact

    I would like to put the title of each field inside the bar, and when you start typing it disappears. How would I go about doing this?

    This is what I would like ideally:

    http://alextomaszewski.com/wp-content/uploads/2014/12/example-contact-box.jpg

    Any help at all is greatly appreciated!

    Thanks!

    Benjamin

    #360826

    Hey a00109943!

    Please add following code to Functions.php file in Appearance > Editor

    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery('input#avia_name_1').attr('placeholder', 'Name *');
    jQuery('input#avia_e-mail_1').attr('placeholder', 'E-mail *');
    jQuery('input#avia_company_1').attr('placeholder','Company *');
    jQuery('input#avia_time_frame_1').attr('placeholder','Time Frame *');
    jQuery('textarea#avia_message_1').attr('placeholder', 'Your message *');
    jQuery('textarea#avia_brief_message_1').attr('placeholder', 'Your subject *'); 
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    Regards,
    Yigit

    • This reply was modified 9 years, 4 months ago by Yigit.
    #361259

    Dear Yigit!

    Thanks! That works perfectly, minus the text area one, for some reason nothing shows up inside this box. Also, because we are including this text inside the boxes now, I need to remove the fields over top of the boxes.

    Any idea how to do that?

    thanks so much!

    You’re the best!

    Ben

    #361540

    Hey Ben!

    I updated the code i posted above, please use it now and to remove labels, please add following code to Quick CSS in Enfold theme options under General Styling tab

    fieldset label {
    display: none!important;
    }

    Cheers!
    Yigit

    #361664

    Thank you so much! That did the trick!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Fields inside contact bars instead of overtop.’ is closed to new replies.