Forums › Forums › Search & Filter Pro › Results displayed in grid format for Avada
- This topic has 13 replies, 3 voices, and was last updated 6 years, 9 months ago by Trevor.
-
Anonymous(Private) March 9, 2018 at 11:00 pm #165176
I am currently building out a website for a hospital and have been spending countless hours trying to find a work around for this using Avada. Unfortunately, I have been able to come up with nothing when activating the Ajax within S&F. Currently I have 2 separate search pages, one for Location and one for Physicians. I currently using the Display Results: Post Type Archive and using some of the built in Avada Theme Options and some CSS to get my grid results but have to use it without Ajax enabled.
I would love to get the code for if anyone can figure this out.
Josh, I would be interested in how you were able to get the results to use the Recent Posts element in the Fusion Builder.
Here are the pages I have setup:
https://whsacf.ideaswithoutlimits.com/physicians/
https://whsacf.ideaswithoutlimits.com/locations/Anonymous(Private) March 10, 2018 at 2:26 pm #165232I 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
-
AuthorPosts