WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] How do I use placeholder text with Contact Form 7? (2 posts)

  1. JUROTO
    Member
    Posted 1 year ago #

    The form I am creating requires that the titles for each text box be inside the text box rather than on top of it. I know that placeholder text isn't the best choice when it comes to user experience with forms (for various reasons), but my design calls for it. I know you can place values inside the text boxes, but that isn't what I'm looking for. Placeholder text is a little different than value text because placeholder text disappears once the user starts typing and the user doesn't need to highlight the text and delete it like with value text. Is there a way to add

    placeholder="name" into the name text box so the code reads

    <input type="text" name="your-name" value="" placeholder="name" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" size="40">

    with out having to go into the php files? And if I have to edit the php, what file would I need to go into and what code would I have to edit or add?

    Thanks in advance for any help! And, btw, thanks for making the plugin, it's awesome! Just this one little option would make it perfect!

    http://wordpress.org/extend/plugins/contact-form-7/

  2. gabrielcastillo
    Member
    Posted 1 year ago #

    If you search for this issue you will find wordpress forums has alot to offer.

    Check this thread out: http://wordpress.org/support/topic/plugin-contact-form-7-placeholder-for-html5?replies=5

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic