• The default placeholder text color is white, and the background color is grey. However, I have changed the background color to white, so the placeholder text is merged and disappeared. We need to know how to change the placeholder text color to grey.
    My input color is black, and it should remain the same way.

    Any help is appreciated!

    Great Plugin to Use!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi,

    Thank you for your kind words!

    The placeholder color should follow the color of the input, but you can force a color of your choice via these custom CSS:

    input.orig::placeholder {
        color: red !important;
    }

    That should do the trick ??

    Best,
    Ernest M.

    Thread Starter chetan0987

    (@chetan0987)

    Hi, Thanks for your response.

    I have used the above code but it didn’t work.

    The Custom CSS I am using are mentioned below that might help you to rectify the issue.

    /*search box background color change*/
    .probox {background-color: #C0C0C0 !important; background-image: none !important;}

    /*search text font color, size, bold*/
    #ajaxsearchlite1 .probox .proinput input, div.asl_w .probox .proinput input {color: #000 !important; font-weight: bold; font-size: 15px !important;}

    /* Search Result titles Color, size, bold */
    .asl_r a.asl_res_url {
    color: #55a098 !important;
    font-weight: bold !important;
    font-size: 15px !important;}

    /* Show more color */
    p.showmore a {
    color: #55a098 !important;
    }

    /*placeholder color change*/
    input.orig::placeholder {
    color: red !important;
    }

    Plugin Author wpdreams

    (@wpdreams)

    That is interesting, I suspect some other custom CSS might be conflicting. May I take a look at this somewhere?

    Thank you!

    Thread Starter chetan0987

    (@chetan0987)

    Code I am using now and the screenshot attached

    /*search text font color, size, bold*/
    #ajaxsearchlite1 .probox .proinput input, div.asl_w .probox .proinput input {color: #000 !important; font-weight: bold; font-size: 15px !important;}

    /* Search Result titles Color, size, bold */
    .asl_r a.asl_res_url {
    color: #55a098 !important;
    font-weight: bold !important;
    font-size: 15px !important;}

    /* Show more color */
    p.showmore a {
    color: #55a098 !important;
    }

    /*placeholder color change*/
    input.orig::placeholder {
    color: #55a098 !important;
    }

    Search Box Image Result

    Plugin Author wpdreams

    (@wpdreams)

    Thank you, but I need to see it live, to see if there is any other CSS conflicting. Can you please share a link to a page where this is visible?

    Thank you!

    Thread Starter chetan0987

    (@chetan0987)

    Test Page

    Use this link to check it live.

    Thanks!

    Plugin Author wpdreams

    (@wpdreams)

    Thank you!

    This will do the trick:

    div.asl_w .probox input.orig::placeholder {
        color: #55a098 !important;
    }
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to change the Placeholder Text color’ is closed to new replies.