Saltar navegación

[Resuelto] I need to overwrite CSS provided by wpt-toolset-backend css file

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

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 3 respuestas, tiene 2 mensajes.

Última actualización por lesleeM 2 years, 11 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2613173

We have an image field as part of a custom field group. This image field displays in the admin area of our site with the following CSS

.wpt-field-item .wpt-file-preview img {
max-width: 100%;
max-height: 100%;
height: auto;
width: auto;
}

This CSS is within wpt-toolset-backend.css?ver=0.1.2

We want to instead have a max-width of 400px for display here as the image is currently displaying at an enormous size.

I tried overriding this with CSS added to my Additional CSS section in my theme customizer, but that had no impact. I found this support ticket filed previously that seems to indicate that this problem should be resolved, but it isn't with my experience unless I'm doing something wrong.

Do I need to try the custom code approach also within this ticket? It would be better if I didn't have to do that and I could instead just keep my CSS in the customizer. Please let me know either way. Thanks.

#2613175
#2613283

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

There are number of articles available about how you can apply custom CSS in admin area:
- enlace oculto
- enlace oculto

But I suggest you should use the following plugin to add your desired custom CSS in admin area:
=> https://wordpress.org/plugins/admin-css-mu/

#2614501

That worked easily. My issue is resolved now. Thank you!