This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Change font size and style of placeholder

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

#25446
Ernest MarcinkoErnest Marcinko
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.