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

Reply To: Category filter styling

#47793
Ernest MarcinkoErnest Marcinko
Keymaster

The header is not the best place for the script, I recommend putting it to the footer, right before the closing body tag, that should do the trick. When I initiate it from the console it does work, so the issue is only the timing.

Could this be written in vanilla JS rather than jquery?
Surely, it would be a bit more complicated, but since you have jQuery on the pages loaded, it’s just much simpler to utilize it.