Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1074254

    Hi, how do I change the color of the placeholder? I added this code in Quick CSS, but the color has not changed.

    :: – webkit-input-placeholder {color: # fdd02c; font-size: 12px;}
    :: – moz-input-placeholder {color: # fdd02c; font-size: 12px;}
    :: – ms-input-placeholder {color: # fdd02c; font-size: 12px;}

    input :: placeholder {
       color: # fdce2c; ! Important;
    }

    #1074306

    Hi Manuela,

    Your code should work but your need to remove the spaces for example:

    :: – webkit-input-placeholder {color: # fdd02c; font-size: 12px;}

    should be:

    ::-webkit-input-placeholder {color: # fdd02c; font-size: 12px;}

    You can use this instead:

    ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
      color: # fdd02c;
      font-size: 12px
    }
    
    ::-moz-placeholder { /* Firefox 19+ */
      color: # fdd02c;
      font-size: 12px
    }
    
    :-ms-input-placeholder { /* IE 10+ */
      color: # fdd02c;
      font-size: 12px
    }
    
    :-moz-placeholder { /* Firefox 18- */
      color: # fdd02c;
      font-size: 12px
    }

    Best regards,
    Nikko

    #1074334

    I put the code that you suggested but not work.

    #1074347

    by the way there should be no space between the hex color definition and hash !
    #fdd02c – then it has to work like that

    or try in a combination of enfold class and input:

    .main_color ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
      color: #fdd02c;
      font-size: 12px
    }
    
    .main_color ::-moz-placeholder { /* Firefox 19+ */
      color: #fdd02c;
      font-size: 12px
    }
    
    .main_color :-ms-input-placeholder { /* IE 10+ */
      color: #fdd02c;
      font-size: 12px
    }
    
    .main_color :-moz-placeholder { /* Firefox 18- */
      color: #fdd02c;
      font-size: 12px
    }
    
    .main_color ::placeholder {
      color: #fdd02c;
      font-size: 12px
    }
    • This reply was modified 5 years, 8 months ago by Guenni007.
    #1074377

    yes it work, thank you

    #1074740

    Hi,

    Great, I’m glad you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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