Forums › Forums › Search & Filter Pro › Thumbnails not showing
Tagged: ajax, grid, images, thumbnails
- This topic has 4 replies, 2 voices, and was last updated 7 years, 2 months ago by
Anonymous.
-
Trevor(Private) September 10, 2018 at 10:49 am #187835
I can see that you are using the custom method, which means it is your theme or page builder that creates the content. With reference to this documentation page:
https://searchandfilter.com/documentation/search-results/custom/
Which of the three methods are you using, or are you using the filter_next_query action in a shortcode (another alternative ‘Custom’ method)?
I suspect that whatever is making the content, is using something like the Masonry script and that needs to be refreshed on Ajax loading, but that can be complex unless the theme or plugin author is able to help. Essentially it requires javascript like this:
<script>(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ console.log("ajax complete"); // call your function(s) here }); }(jQuery));</script>Anonymous(Private) September 10, 2018 at 11:06 am #187837Hi Trevor,
I am using the custom method and the filter_next_query action in the shortcode. Then I use the Site Origin Grid Loop to show a post grid.
I tested all this on a test domain and had no problems with loading the images. Then I installed the plugin on my normal domain and set everything the same way as I did on test.
Also see this thread: https://support.searchandfilter.com/forums/topic/grid-results-pagination-wont-work/
So everything was working fine there, but now, with the same plugins it does not work.
-
AuthorPosts