Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Category filter styling › Reply To: Category filter styling
April 16, 2024 at 10:11 am
#47793
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.