Forums › Forums › Search & Filter Pro › Allowing for all tickboxes to be clicked at once
- This topic has 25 replies, 2 voices, and was last updated 8 years, 11 months ago by
Trevor.
-
Trevor(Private) October 11, 2016 at 11:54 am #63250
Hi
Ross had a look this morning. He says you are loading your code in the loop, where it needs to be at page level. He suggests you move the code to an external js file and enqueue it from the theme functions.php file.
As a thought. If you inspect the code of an S&F form you will see that it is made from a series of
<li>
blocks. If you open one of those in the inspector then watch an ajax submission of the form, you will see that the<li>
itself is not affected, but its contents are. You have been placing the extra tick box inside an existing<li>
, and so it gets wiped. However, make your own<li>
before the one you want it before, and that will not be touched by Ajax. Use styling to make it LOOK part of the list.Anonymous(Private) October 20, 2016 at 6:09 pm #65433Thanks Trevor – sorry for the delay in getting back to you. I’ve tried to load it using enqueue script but that’s still not working.
The page is here: http://neweconomics.org/search/
and the file is here: http://neweconomics.org/wp-content/themes/nef-website/static/public/js/collapsable.jsLet me know if there’s anything else I can do.
Best wishes,
Joe
Trevor(Private) October 20, 2016 at 6:30 pm #65447Hi Joe
So, you loaded the js file from the theme functions.php file. I can see it loading on the page. Before using S&F at all, is it doing what it is supposed to? I mean, what is it supposed to do to the virgin page before a user touches the form? And have you now done to try and make it work up to that point?
-
AuthorPosts