Bienvenido, Invitado
Recordarme

TEMA:

Gantry 5 theme overiding the form colours 2 meses 3 semanas antes #275635

  • Autor del tema
  • Stephen Greener
  • Fuera de línea
  • Junior Breezer
  • Junior Breezer
  • Mensajes: 42
  • Gracias recibidas: 0
I have upgraded a site to use a ganty5 template. The site has 7 forms previously with the qmtheme ; well liked! The Gantry style now overrides the form element text colors with the white text of the style thereby becoming invisible on white/yellow backgrounds.
I have been trying to master how to apply CSS to the forms to get a contrast colors for the input field titles and the user input text. Not having any success.
Now under the hammer to make this work. Please help. I never did any css before.
I have tried to put stuff in the Form Pieces Custom box but nothing I tried works.
Adjuntos:

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by Stephen Greener.

Gantry 5 theme overiding the form colours 2 meses 3 semanas antes #275637

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderator
  • Moderator
  • Mensajes: 11066
  • Karma: 3
  • Gracias recibidas: 727
Hi,

please send me link of form, and I will provide you with css code, and tell you where you can put it :)

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Gantry 5 theme overiding the form colours 2 meses 2 semanas antes #275640

  • Autor del tema
  • Stephen Greener
  • Fuera de línea
  • Junior Breezer
  • Junior Breezer
  • Mensajes: 42
  • Gracias recibidas: 0
The Test website is not published. Its on an XAMPP installation on my PC. What else can we do?
The grey background showing on the form is the default template color. The template text default is white which is the problem. The white text is what I need everywhere else.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by Stephen Greener.

Gantry 5 theme overiding the form colours 2 meses 2 semanas antes #275641

  • Avatar de Mirec
  • Mirec
  • Fuera de línea
  • Ultimate Breezer
  • Ultimate Breezer
  • Mensajes: 3112
  • Karma: 2
  • Gracias recibidas: 153
Hi,

you can add CSS code into Advanced of FORM -> More options -> Form Pieces select custom and add this code
echo '
<style>

add CSS code
</style>

';

You need to make inspect of the site, find a class, and change it putting the CSS code into code above.

or

find the folder of theme and change CSS code directly in her, see the image below



I hope that you understand!

Reagrds,
Mirko
Adjuntos:

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Gantry 5 theme overiding the form colours 2 meses 2 semanas antes #275674

  • Autor del tema
  • Stephen Greener
  • Fuera de línea
  • Junior Breezer
  • Junior Breezer
  • Mensajes: 42
  • Gracias recibidas: 0
Hello Mirko,
I was not able to do the job even with your instructions. Instead I have put effort into putting the site up for you to see on a friend's private server.

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by Stephen Greener.

Gantry 5 theme overiding the form colours 2 meses 2 semanas antes #275675

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderator
  • Moderator
  • Mensajes: 11066
  • Karma: 3
  • Gracias recibidas: 727
Hi,

please go to form->Advanced->More options->Form pieces->Before form->check Custom and put:
echo '
<style>
.bfQuickMode .bfLabelLeft label {
color: black !important;
}
</style>
';
With this you will see black text instead of white

If you need more help, let us know

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by tihana.krivic.
Tiempo de carga de la página: 0.099 segundos