How to change color text (not placeholder)

Home Forums Product Support Forums Ajax Search Pro for WordPress Support How to change color text (not placeholder)

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 6 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6030
    pmodugno
    pmodugno
    Participant

    Hi,

    I would like to congratulate first of all for your great plugin. It ‘very easy to use and works perfectly. In addition, you have fulfilled my request in the latest release. We felt via email and you did a great job. My most sincere congratulations.

    I need some of your suggestions. Please take a look at my site http://www.cookinggamesforkids.biz/caw/ Now a host is on trial. When I will finish my project, I will upload all final host.

    I need to understand how I can work on the text that you type. I wish that the placeholder was yellow, while the user types were actually black.

    Thanks a lot and look for your feedback.

    #6031
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    You are very welcome, i’m glad you are enjoying the plugin 🙂

    Changin the placeholder color different from the input color is only possible via custom CSS color right now. I didn’t make an option to change that, the placeholder will get the same color as the input field, only with a lower opacity. I might have to implement this option though, I will definitely think about it.

    In the meantime use this code to override the placeholder color:

    
    input.orig::-webkit-input-placeholder {
       color: rgb(255, 224, 101) !important;
    }
    
    input.orig:-moz-placeholder { /* Firefox 18- */
       color: rgb(255, 224, 101) !important;
    }
    
    input.orig::-moz-placeholder {  /* Firefox 19+ */
       color: rgb(255, 224, 101) !important;
    }
    
    input.orig:-ms-input-placeholder {  
       color: rgb(255, 224, 101) !important;
    }

    It’s a bit lengthy and repetitive, but it only works this way for some reason. Now you can change the input color to black, and the placeholder color should still stay yellow.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.