Is it possible to add a custom class to a filter?
-
I have 4 filters set up that each include a different set of categories. I have been able to use CSS to style the filter title, bottom border and the icon. I’ve been able to set the color of the filter title in Divi using the text box I use for the shortcode. However, I would like to have the bottom border of the filter match the color of the filter title. Is there a way to add a custom class to each filter in order to accomplish this? Or do you know another way to accomplish it? I tried using this code using ninth child but it had no affect:
.wpf_items_grouped .wpf_grouped_label:nth-child(1) { font-weight: 500 !important; border-bottom: 3px solid #6757a3 !important; } .wpf_items_grouped .wpf_grouped_label:nth-child(2) { font-weight: 500 !important; border-bottom: 3px solid #00afef !important; } .wpf_items_grouped .wpf_grouped_label:nth-child(3) { font-weight: 500 !important; border-bottom: 3px solid #1f4b8e !important; } .wpf_items_grouped .wpf_grouped_label:nth-child(4) { font-weight: 500 !important; border-bottom: 3px solid #6757a3 !important; }
Also, when I select “Show Category Hierarchy”, the filter title shows but none of the categories. Is there a glitch?
Thanks for any help you can give me.
The page I need help with: [log in to see the link]
- The topic ‘Is it possible to add a custom class to a filter?’ is closed to new replies.