Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #851547

    nonenone
    Participant

    Hi guys,

    I’m looking to change contact form 7 colour to rgb(155, 89, 182) and make the user text input white and also add a white glow that gets bigger when the user clicks on the field.

    What’s the CSS code for it?

    Many thanks,

    #851700

    John Ezra
    Member

    Hi there,

    Thanks for writing in! To assist you with this issue, would you mind providing us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything. Thanks!

    #852003

    nonenone
    Participant

    Hi,

    The website is not ready yet, there’s a lot of editing happening at the moment.
    If you provide me the CSS code I think I will be able to take it from there.

    Many thanks,

    #852021

    Rupok
    Member

    Hi there,

    Thanks for writing back. Unfortunately it’s not possible to provide a general code without checking the URL because we are not even sure what you are referring by “contact form 7 colour”. You can add a screenshot and point us the issue so that we could try to provide you some code.

    Cheers!

    #852037

    nonenone
    Participant

    Hi,

    Sorry about not being very clear, this is how I would like it to look like.

    Also I would like the user text input to be white and add a white glow when the user clicks on the field.

    Many thanks,

    #852057

    Paul R
    Moderator

    Hi,

    You can add this under Custom > CSS in the Customizer.

    
    .wpcf7 p {
       color:#fff;
    }
    
    .wpcf7 textarea, 
    .wpcf7 input[type="text"] {
       border: 5px solid #fff;
    }
    
    .wpcf7 input[type=text]:focus, 
    .wpcf7 textarea:focus {
      @include box-shadow(0 0 5px rgba(0, 0, 0, 0.5));
      padding: 3px 0px 3px 3px;
      margin: 5px 1px 3px 0px;
      border: 1px solid rgba(0, 0, 0, 0.2);
    }
    

    Hope that helps.

    #852141

    nonenone
    Participant

    Hi,

    Thank you for your response.

    The user text input colour didn’t change even when I added !important; also for some reason changes didn’t apply to the email field.

    Please check the attachment.

    Many thanks,

    #852155

    Paul R
    Moderator

    Hi,

    Please change the code given above to this

    
    .wpcf7 p {
       color:#fff;
    }
    
    .wpcf7 textarea, 
    .wpcf7 input[type="text"] {
       border: 5px solid #fff;
    }
    
    .wpcf7 input[type=text]:focus, 
    .wpcf7 textarea:focus {
      color:#fff !important;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
      padding: 3px 0px 3px 3px;
      margin: 5px 1px 3px 0px;
      border: 1px solid rgba(0, 0, 0, 0.2);
    }
    
    #852198

    nonenone
    Participant

    Thank you! I love this but still styling changes didn’t apply to the email field.
    Is there something missing in the code?

    #852209

    nonenone
    Participant

    Also after the text is typed and the user clicks on the next field, the text turns black 🙁

    How can I keep it white?

    #852215

    Paul R
    Moderator

    Hi,

    Sorry about that, please replace the code with this.

    
    .wpcf7 p {
       color:#fff;
    }
    
    .wpcf7 textarea, 
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"] {
       color:#fff !important;
       border: 5px solid #fff;
    }
    
    .wpcf7 input[type=text]:focus, 
    .wpcf7 input[type=email]:focus, 
    .wpcf7 textarea:focus {
      color:#fff !important;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
      padding: 3px 0px 3px 3px;
      margin: 5px 1px 3px 0px;
      border: 1px solid rgba(0, 0, 0, 0.2);
    }
    

    Thanks

    #852229

    nonenone
    Participant

    Great! 😀 Thank you very much!

    #852240

    Paul R
    Moderator

    You’re welcome! 🙂