Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #705501

    Hi,
    I would like to style the validation error messages in a Contact Form 7.
    I just want to have it in red.

    can someone give me the Quick CSS code ?

    I try this but no nothing changes.

    #wpcf7-not-valid-tip {
    color: #red;

    Thanks

    #705521

    Hey ppi37,

    The correct code is

    #wpcf7-not-valid-tip {
    color: red;
    }

    Please do let us know if we can do anything else to help you

    Best regards,
    Basilis

    #705526

    Hi Basilis,
    Thanks,
    but no change with your code

    #705551

    Hi,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    div.wpcf7-validation-errors {
        border: 2px solid #f70000!important;
    }
    


    Best regards,
    Vinay

    #705555

    Hi Vinay,
    It’s OK with the following Quick CSS

    #wpcf7-not-valid-tip {
    color: #e95b0f;
    }

    div.wpcf7-validation-errors {
    border: none;
    color: #e95b0f;
    }

    #top label span {
    color: #e95b0f;
    }

    Thanks a lot

    #705592

    Hi ppi37,

    Glad it’s fixed :)

    Best regards,
    Nikko

    #705614

    Hi again,
    Finaly the following CSS is not good.

    #top label span {
    color: #e95b0f;
    }

    because it changes labels of the checkbox and the labels of the files too.
    But if I remove it, the validation error messages still in the primary color.
    And it’s not easy to see which fiel is wrong.

    a solution ?

    Thanks

    #705622

    Hi,
    I don’t understand why the following code doesn’t work with the enfold theme.
    span .wpcf7-not-valid {
        border: 1px solid #ff0000;
    }
    following the recomandations here :

    Thanks

    #706555

    Hi,

    Please try adding the important statement to the end of you CSS:

    span .wpcf7-not-valid {
        border: 1px solid #ff0000 !important;
    }

    Best regards,
    Rikard

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.