WordPress.org

Support

Support » Plugins and Hacks » [Resolved] How to add an ID to a field so I can use the label tag?

[Resolved] How to add an ID to a field so I can use the label tag?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Rian Rietveld
    Participant

    @rianrietveld

    Hi jouielovesyou,

    Change the default form from:

    <p>Your Name (required)<br />
    [text* your-name] </p>
    ><p>Your Email (required)<br />
    [email* your-email] </p>
    <p>Subject<br />
    [text your-subject] </p>
    <p>Your Message<br />
    [textarea your-message] </p>
    <p>[submit "Send"]</p>

    into (for example):

    <fieldset>
    <label for="name">Name (required)</label>
    [text* your-name id:name]
    <label for="e-mail">Email address (required)</label>
    [email* your-email id:e-mail]
    </fieldset>
    [submit "I want your newsletter"]

    More on:
    How to set up an accessible form using Contact Form 7 in WordPress

    jouielovesyou
    Member

    @jouielovesyou

    It worked! Thanks

    buzztone
    Participant

    @buzztone

    @rian Rietveld – thanks for the link. That’s a really useful & well written article.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] How to add an ID to a field so I can use the label tag?’ is closed to new replies.