Skip Navigation

[Resuelto] Change submit color button

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

Problem: I would like to change the background color of submit buttons in all CRED forms.

Solution: Apply the following CSS in a global stylesheet:

.cred-form input[type="submit"] {
  background-color: blue !important;
}
This support ticket is created hace 6 años, 3 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Este tema contiene 8 respuestas, tiene 2 mensajes.

Última actualización por michaelO-8 hace 6 años, 3 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#615436
current button.PNG
desired button.PNG

I am trying to: change the submit color button. In the CSS portion of the form, I have tried several things:

1)
.wpt-form-submit form-submit submit submit{
background-color: blue;}

2) #cred_form_3110_1-submit-1-1518469253{
background-color: blue;}

3) adding !important

I am not sure if my theme is overriding the CSS or if I am not targeting the submit button properly

Link to a page where the issue can be seen: enlace oculto
(you must log in to see this form I can provide credentials if needed)

I expected to see: a blue button

Instead, I got: a grey button

#615445

I'll be glad to take a look. Please provide login credentials in the private reply fields here.

#615449

I'm currently unable to see the form on this page. Are you making modifications now? Please let me know when you would like to continue.

#615465

Yes, sorry, I did not realize you could not view it if I was making modifications. Please go ahead.

#615688

I updated the CSS in your CRED form's CSS panel:

input[type="submit"] {
  background-color: blue !important;}

Seems to be working now, please check it out.

#615703

Thanks, it works!

I checked the rest of the site and the other submit buttons unrelated to Toolset do not seem to be affected (which is good).

It is possible for the CSS provided to affect other buttons (in theory, any other non toolset, <type= submit> buttons could be affected right?) ? If so, is there a way to give Toolset submit buttons a unique class or id that would make sure that they are only affected when I want them to be?

#615704

Sorry, did not realize marking this as resolved would prevent you from replying. Will reopen so that I can see your reply.

#615712

In order to affect all the submit buttons in CRED forms, you would have to do a couple of things.
1. All CRED forms have the CSS class "cred-form", so you could use that in your style selector:

.cred-form input[type="submit"] {
  background-color: blue !important;
}

2. Move this CSS out of the CRED form CSS panel and into a location that is globally accessible. The CRED form's CSS panel only applies to one particular CRED Form. You could add this code to a stylesheet in your child theme instead, or in the Theme Customizer's Additional CSS panel. I see you also have a Simple Custom CSS plugin active - I'm not familiar with that plugin but you may be able to add this CSS there.

I recommend checking out these links for more information about CSS syntax, selectors, and specificity:
enlace oculto
enlace oculto

#615713

Thanks!

Este ticket ya está cerrado. Si eres cliente de Toolset y necesitas ayuda relacionada, abre un nuevo ticket de soporte.