Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Change font size and style of placeholder › Reply To: Change font size and style of placeholder
January 23, 2020 at 6:38 pm
#25446
Keymaster
Hi,
The placeholder automatically changes to the input font, but you can style it via custom CSS if you want to:
input.orig::placeholder {
color: red !important;
}
input.orig:-ms-input-placeholder {
color: red !important;
}
input.orig::-ms-input-placeholder {
color: red !important;
}
Please note, that these styles cannot be aggregated into one comma separated rule, the browsers would not render the correclty.
The style changes on the back-end are processed into a static CSS file, which is then loaded on the front-end. The CSS file is dynamically generated depending on the search settings to minimize the output file size.