Skip Navigation

[Resolved] change the visual aspect of the selected taxonomy in the filter

This support ticket is created 7 years 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 7 years ago.

Assisted by: Luo Yang.

Author
Posts
#591819
02-taxonomy-select-css-change.jpg
01-taxonomy-select-now.png

Tell us what you are trying to do?

I want to change the color of the text or background with CSS in the selected taxonomy filter so that it is clearly displayed what the user selects
The filters have this format

[wpml-string context="wpv-views"]Tipo inmueble[/wpml-string]</label>[wpv-control-post-taxonomy taxonomy="tipo-inmueble" type="select" default_label="Tipo Inmueble" url_param="wpv-tipo-inmueble"]

Is there any documentation that you are following?
no

Is there a similar example that we can see?
hidden link

What is the link to your site?
hidden link

#591900

Dear Ana,

There isn't such a built-in feature within Views plugin, it need custom CSS codes, I searched in google and fount some related threads:
https://stackoverflow.com/questions/2402146/html-select-selected-option-background-color-css-style
https://stackoverflow.com/questions/7208786/how-to-style-the-option-of-a-html-select
For your reference