Forums › Forums › Search & Filter Pro › Radio Button Filter Style
- This topic has 11 replies, 2 voices, and was last updated 3 years, 10 months ago by Trevor.
-
Trevor(Private) January 18, 2021 at 11:58 am #273063
Thanks. I am not entirely sure what you want to do. Do you want to replace the radio button, or the label with a color to match the word (i.e. blue image to replace the blue word), or add the image before OR after OR behind the label?
Do you have a mockup image of what you want it to look like?
Trevor(Private) January 18, 2021 at 1:08 pm #273084I think I would not show the All Countries option, so maybe use a checkbox control instead?
To show the flags instead of labels, and also hide the input button:
.searchandfilter[data-sf-form-id="14110"] .sf-field-taxonomy-project_company > ul > li { margin-right: 20px; float: left; } .searchandfilter[data-sf-form-id="14110"] .sf-field-taxonomy-project_company > ul > li > input { display: none; } .searchandfilter[data-sf-form-id="14110"] .sf-field-taxonomy-project_company > ul > li > label { color: rgba(0,0,0,0); height: 64px; width: 64px; max-height: 64px; overflow: hidden; } .searchandfilter[data-sf-form-id="14110"] .sf-field-taxonomy-project_company > ul > li > input[value="austria"] + label { background: url(https://www.martabak.vip/wp-content/uploads/2021/01/blue.png); } .searchandfilter[data-sf-form-id="14110"] .sf-field-taxonomy-project_company > ul > li > input[value="belgium"] + label { background: url(https://www.martabak.vip/wp-content/uploads/2021/01/red.png); } .searchandfilter[data-sf-form-id="14110"] .sf-field-taxonomy-project_company > ul > li > input[value="france-property"] + label { background: url(https://www.martabak.vip/wp-content/uploads/2021/01/grey.png); }
-
AuthorPosts