Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #589184

    Hi!

    in my contact form, i have elements with and without validation. the element without validation still are marked with an *asterix – the form is still sending if the field is blank, but it is irritating. how can it be removed?

    i also tried to change the background color, if a validation field is left empty. it worked for the text input, but not the email element. can i also change the font color if it is tried to send with the empty validation fields?

    #top #wrap_all .error  .is_empty  {
    	background-color: #df6f1f !important;
    	}

    another thing at the page: in the URL it attaches a slug: http://www.xxxxx/xxxx/animated-image
    Where is that coming from?????

    thx for looking!
    Lucie

    #590530

    Hello,

    Have you tried disabling all third-party plugins to see if it gets fixed?

    Regards,
    Josue

    #590627

    Hi Josue,

    jap, i checked the plugins, no change….

    #591377

    Hey!

    To change background and font color on error please try this CSS

    
    /* Validation error bg*/
    .form_element.error input {
         background-color: #df6f1f !important;
    }
    /* Validation error font color*/
    .form_element.error input::-webkit-input-placeholder {
         color:#FFF!important;
    }
    
    

    To target all the browsers please add the following with the above CSS snippet

    ::-webkit-input-placeholder { /* WebKit, Blink, Edge */
        color:    #FFF;
    }
    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
       color:    #FFF;
       opacity:  1;
    }
    ::-moz-placeholder { /* Mozilla Firefox 19+ */
       color:    #FFF;
       opacity:  1;
    }
    :-ms-input-placeholder { /* Internet Explorer 10-11 */
       color:    #FFF;
    }
    :placeholder-shown { /* Standard (https://drafts.csswg.org/selectors-4/#placeholder) */
      color:    #FFF;
    }

    I checked the validation it works fine except for the date picker it looks like users should enter the date.

    Cheers!
    Vinay Kashyap

    #591442

    Hi!
    the change of the bg color worked fine;
    stays the problem with the font color, the * at the none validation field (the date) and the weird “animated image” slug. :(

    could you take another peek?
    thx!
    Lucie

    #592200

    Hey!

    Please add the following CSS to Quick CSS to change the font color

    
    /* Validation error font color*/
    .form_element.error input::-webkit-input-placeholder, 
    .form_element.error input:-moz-placeholder,
    .form_element.error input::-moz-placeholder,
    .form_element.error input:-ms-input-placeholder,
    .form_element.error input:placeholder-shown{
         color:#FFF!important;
         opacity: 1;
    }

    Best regards,
    Vinay Kashyap

    #592612

    Hi Vinay!
    nope, unfortunately nothing…

    regards
    Lucie

    #592931

    Hey!

    This is the final code we added and it is working correctly now

    /* Validation error font color*/
    .form_element.error input {
         background-color: #df6f1f !important;
    }
    
    .form_element.error input::-webkit-input-placeholder {
         color:#FFF!important;
    }
    
    .form_element.error input:::-moz-placeholder {
         color:#FFF!important;
    }
    
    .form_element.error input::-ms-input-placeholder {
         color:#FFF!important;
    }
    
    .form_element.error input::placeholder {
         color:#FFF!important;
    }
    

    Regards,
    Vinay Kashyap

    #594954

    Hi Vinnie,

    perfect, thank you very much!
    best regards
    Lucie

    #594957

    oh, short thing again: it is not working with firefox….

    #594962

    found it! there was one colon to much. :D
    now it s working fine, thx!

    #594986

    Hi!

    Glad we could help :)

    Some info we have put together about enfold theme please feel free to check it out here – http://kriesi.at/documentation/enfold/

    Thank you for using Enfold :)

    Regards,
    Vinay Kashyap

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