Passer la navigation

[Closed] Placeholder text in dropdown select field in Search Form

This support ticket is created Il y a 2 years, 9 months. 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.

Ce sujet contient 1 reply, a 2 voices.

Dernière mise à jour par Nigel Il y a 2 years, 9 months.

Auteur
Publications
#2510293

Would like to add placeholder text to select dropdown fields in search form on below link:
lien caché

#2510453

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01:00)

Screenshot 2022-12-06 at 15.48.55.png

Hi there

Am I right in thinking you created this with the legacy Views editor?

If you place the cursor inside the wpv-control-postmeta shortcode responsible for generating the dropdown (in the Search and Pagination editor of the View) and click the Edit filter button it will bring up a dialog where you can enter placeholder text for the first empty option, as shown in the screenshot.

(Or edit the shortcode directly and add an attribute such as default_label="Choose an option".)

The topic ‘[Closed] Placeholder text in dropdown select field in Search Form’ is closed to new replies.