Forums › Forums › Search & Filter Pro › Results displayed in grid format for Avada
- This topic has 13 replies, 3 voices, and was last updated 7 years, 8 months ago by
Trevor.
-
Anonymous(Private) March 10, 2018 at 2:26 pm #165232
I found a snippet pf code used for FacetWP, not sure if it would work for S&F or not but may help in getting this resolved.
<?php // Add the following into functions.php add_action( 'wp_footer', function() { ?> <script> (function($) { $(document).on('facetwp-loaded', function() { if (FWP.loaded) { // trigger only after the initial refresh $blogGrid = $( '.fusion-blog-layout-grid' ); $blogGrid.imagesLoaded(function() { $items = $blogGrid.find( 'article' ); $blogGrid.isotope( 'appended', $items ).isotope('layout'); }); } }); })(jQuery); </script> <?php }, 100 ); ?>Anonymous(Private) March 19, 2018 at 9:38 pm #166960Chris, sorry for taking so long to reply.
Bottom line: I spoke too soon. The “grid” I spoke of only worked on first load. If I clicked into a listing, then went back to the filter page, the grid layout was no longer there.
I hate that the basic version of S&F doesn’t use Ajax, but overall, it did what we needed. I might go back to it.
Trevor(Private) March 19, 2018 at 9:41 pm #166962You might be interested in this post:
https://support.searchandfilter.com/forums/topic/reload-masonry-grid-after-ajax-call/#post-165867
Anonymous(Private) March 19, 2018 at 9:51 pm #166975I actually ended up using the short code method and the Custom Post Types for Fusion Builder plugin. I was able to utilize the built in grid, masonry and carousel functions true to Avada along with the Infinite Scroll and Load More functions from Avada. Unfortunately, using the S&F Pro Ajax was still a no go when performing a new search, but I can live without it at this point.
Custom Post Types for Fusion Builder:
https://codecanyon.net/item/custom-post-types-and-taxonomies-for-fusion-builder/15572585How I utilized it with Search and Filter Pro:
https://whsnew.pairsite.com/physicians-finder/
https://whsnew.pairsite.com/locations-practices/ -
AuthorPosts