on-internet
← Community

Add label text to radio buttons in Wordpress site using Contact Form 7

Stack Overflow ·

I'm trying to improve my website by making it more accessible and compliant with WCAG 2.0 (Level AA) guidelines. It's a Wordpress site that uses Contact Form 7 to create forms. By default, Contact Form 7 doesn't add a label to its input elements. It's easy enough to manually add a label complete with a for attribute to input of type "text": <label for="address">Street Address*</label><br /> [text* Address1 id:address] However, I'm having trouble doing this for radio buttons. I know that there's an option to "use_label_element" when generating a radio button tag with Contact Form 7, however thi

Comments

Sign in or sign up to comment and upvote.

No comments yet.