Saltar navegación

[Resuelto] Hide a checkbox on VIEW filter

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

The issue here is that the user wanted to hide a specific checkbox on their view filters.

Solution:

This can be done by using the css below.


label[for="location-flexible-location"]
{
    display:none;
}

Where location-flexible-location is the for attribute of the label for the checkbox on the frontend

This support ticket is created hace 5 años, 5 meses. 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)

Etiquetado: 

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por leilaG hace 5 años, 5 meses.

Asistido por: Shane.

Autor
Mensajes
#1308055

We use the same taxonomy list on a few different post types, and would like to hide one of the checkbox items from the VIEWS filter, how would we do this?

#1308247

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Leila,

Thank you for getting in touch.

Could you send me a link to the page so I can provide the css to hide this ?

Thanks,
Shane

#1309377

enlace oculto

We would like to hide flexible location

Thanks

#1309639

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Leila,

You will need to use some css to do this.

Try adding this css here

label[for="location-flexible-location"]
{
    display:none;
}

Thanks,
Shane

#1309721

Worked perfectly. Thank you!