Forums › Forums › Search & Filter Pro › Quick help !
- This topic has 4 replies, 3 voices, and was last updated 8 years, 1 month ago by Anonymous.
-
Anonymous(Private) October 17, 2016 at 1:35 pm #64506
I want to use the Simple Lightbox plugin on my site, it’s obviously not working when I use ajax filters ! so I want to try the code you provide on the FAQ !
But I just don’t know where I should put this code ! Can you tell me where please ?
Best regards
JulienAnonymous(Private) October 17, 2016 at 4:27 pm #64552There’s a lot of options as to where you could put it, so it really depends on your theme and how comfortable you are editing it.
It’s worth noting that all the exact code in the FAQ does is show you how to use it. It will just write messages to the browser console, it doesn’t actually fix the problem you’re seeing. You’ll need to have some understanding of the lightbox plugin you’re using and how to reinitiate it after the results are filtered.
To answer you question about where the code goes, if you just want to run some tests, you can place your scripts in the footer.php file for your theme, just above the closing body tag.
After testing, it’s usually best to get your javascript in using the wp_enqueue_script() function. A link below to a pretty good walkthrough of using it.
https://premium.wpmudev.org/blog/adding-scripts-and-styles-wordpress-enqueueing/
Hope it helps.
Trevor(Private) October 18, 2016 at 2:55 pm #64854It is now in the development version that I have, and does require that you have Ajax enabled. If you look at our documentation, you will see it now has a page, but that is empty until it is officially released:
https://www.designsandcode.com/documentation/search-filter-pro/search-results/infinite-scroll/
-
AuthorPosts