Skip Navigation

[Resolved] I need help adding an ID to the search field so it can pass accessibility

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Project Weblife 4 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#1561703
Screen Shot 2020-03-24 at 10.58.37 AM.png

I need help adding an ID to the search field so it can pass accessibility

No, I found some old forms to reference but they didn't help much,

hidden link

Replicate issue.
hidden link

#1561895

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for getting in touch.

You should be able to do this by using some jquery to add the id attribute. Try adding the code below to the JS section of your view.

jQuery("input[name='wpv_post_search']").attr('id', 'value');

Please try this and let me know if it helps.
Thanks,
Shane

#1564849

Great, that fixed the issue for me. Any reason why this feature isn't just built into the core of the plugin?

Also would you be able to help me with a similar fix for this dropdown list in the sidebar filters?

hidden link

#1565675

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Unsure of the reason why this isn't there by default, however you are able to add a class.

Also on the link that you sent i'm not seeing any sidebar on the page.

Thanks,
Shane

#1565713

My issue is resolved now. Thank you!