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

Reply To: Changing color of dropdown filters.

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Changing color of dropdown filters. Reply To: Changing color of dropdown filters.

#26996
Ernest MarcinkoErnest Marcinko
Keymaster

Hi!

Those are sort of hard-coded, but you can change the color via custom CSS:

/* The selection */
.asp_s span.asp_select2-container--flat ul li.asp_select2-selection__choice,
.asp_sb span.asp_select2-container--flat ul li.asp_select2-selection__choice {
    color: white;
    background-color: #ff7272 !important;
    border: 1px solid #ff7272 !important;
}

/* Drop down general */
span.asp_select2-container--open .asp_select2-dropdown--below,
span.asp_select2-container--open .asp_select2-dropdown--above {
    background: #9c6a6a;
    color:#fff;
}

/* Drop down selected values */
span.asp_select2-container--flat .asp_select2-results__option[aria-selected=true] {
    background: #b34949;
    color: #fff;
}

/* Drop down hovered selection */
span.asp_select2-container--flat .asp_select2-results__option--highlighted[aria-selected] {
    background: #dc3737 !important;
    color: #fff;
}