Forums › Forums › Search & Filter Pro › highlight filter that is selected
- This topic has 8 replies, 2 voices, and was last updated 4 years, 5 months ago by Trevor.
-
Anonymous(Private) July 31, 2020 at 3:25 am #254672
Hi there,
I’m trying to get the filter that I have selcted to be bold so it stands out from the rest. I have tried the following:
input[type=”checkbox”]:checked + label
li[data-sf-field-input-type=checkbox]:checked + labelAlso with the class in front (.searchandfilter) and nothing is showing the alternate just so you can see which one is which.
Any help would be amazing thankyou
Anonymous(Private) July 31, 2020 at 3:38 am #254673Ok so I have an edit… it is working on the products but not on the product category filtering:
body input[type=checkbox]:checked + label{
font-weight:900 !important;
color:#091843;
display:block;
}working:
/products/?_sft_product_category=isobaric-fillingnot working
/product-category/beverage-packing-equipment/?_sft_product_category=isobaric-fillingCan you help to clarify this one?
Anonymous(Private) July 31, 2020 at 4:17 am #254674Edit number 2:
after further investigation it is like the children/subcategories don’t actually get :checked like the parents do hence not seeing the :checked css.
Also it appears that everything works well on:
archive post-type-archive post-type-archive-productsbut on:
archive tax-product_category term-beverage-packing-equipment
This is where nothing is reading through…Any help would be awesome please
Anonymous(Private) August 3, 2020 at 8:00 am #254782Hi there Trevor, I hope you had a good weekend.
No, I have no idea what is causing the js to close it. I am starting o freak out as the client needs the site completed and this is one of the lasting issues we need to be sorted. Can you think of anything else it could be that could be triggering it?
-
AuthorPosts