Search Results for 'Masonry'

Forums › Forums › Search › Search Results for 'Masonry'

Viewing 10 results – 81 through 90 (of 354 total)
  • Author
    Search Results

  • Trevor
    Participant

    Did you follow our guide for using the Elementor Post Grid. Our plugin will integrate with this (to show any Post Type) to allow you to show results in a grid. Our guide for Elementor:

    https://searchandfilter.com/documentation/3rd-party/elementor/

    Even if you do not have Masonry enabled (it might not even be an option), use the guide for Masonry & Ajax, but, instead of this code:

    (function ( $ ) {
    	"use strict";
    	
    	// detects when the ajax request has finished and the content has been updated
    	// re-init the layout scripts from Elementor
    	$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    		elementorFrontend.init();
    	});
    	
    }(jQuery));

    Use this code:

    (function ( $ ) {
    	"use strict";
    	
    	// detects when the ajax request has finished and the content has been updated
    	// re-init the layout scripts from Elementor
    	$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    		elementorFrontend.hooks.doAction('frontend/element_ready/posts.classic', jQuery('.elementor-widget-posts'));
    	});
    	
    }(jQuery));

    Note, if you are placing the code inline on the page (in a HTML widget, in the Text view tab), it needs the <script>.....</script> tags around it. You can often place the form shortcode, the linking filter_next_query action shortcode, and the script all in one text module. So, the entire code block might look like this:

    [searchandfilter id="25413"]
    [searchandfilter id="25413" action="filter_next_query"]
    <script>(function ( $ ) {
    	"use strict";
    	$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    		elementorFrontend.hooks.doAction('frontend/element_ready/posts.classic', jQuery('.elementor-widget-posts'));
    	});
    }(jQuery));</script>
    #209304

    Trevor
    Participant

    OK. It is working of a sort. The main issue is the theme, Avada. With this theme, it is difficult to use the As an Archive and Post Type Archive methods.

    This is because Avada uses Masonry (Isotope) to lay out the posts. This would need to be re-triggered after each search, but we have been unable to discover how to do this with Avada (and we have tried).

    At this time, most Avada users install the free Post grid plugin and follow this method to achieve the layouts and filtering:

    https://searchandfilter.com/documentation/3rd-party/post-grid/

    #209213

    Anonymous
    Inactive

    Great speaking with you.

    Hoping we can get the URL and masonry figured out as well.

    Thanks,

    Paul

    #209164

    Trevor
    Participant

    At the moment you are using our Shortcode display results method. You have two alternatives:

    #1 Use the Elementor Post grid. Our plugin will integrate with this (to show any Post Type) to allow you to show results in a grid. Our guide for Elementor:

    https://searchandfilter.com/documentation/3rd-party/elementor/

    Even if you do not have Masonry enabled (it might not even be an option), use the guide for Masonry & Ajax, but, instead of this code:

    (function ( $ ) {
    	"use strict";
    	
    	// detects when the ajax request has finished and the content has been updated
    	// re-init the layout scripts from Elementor
    	$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    		elementorFrontend.init();
    	});
    	
    }(jQuery));

    Use this code:

    (function ( $ ) {
    	"use strict";
    	
    	// detects when the ajax request has finished and the content has been updated
    	// re-init the layout scripts from Elementor
    	$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
    		elementorFrontend.hooks.doAction('frontend/element_ready/posts.classic', jQuery('.elementor-widget-posts'));
    	});
    	
    }(jQuery));

    Note, if you are placing the code inline on the page (in a widget), it needs the <script>.....</script> tags around it. You can often place the form shortcode, the linking filter_next_query action shortocde, and the script all in one text module.

    #2 Use our integration with the free Post Grid plugin. See here:

    https://searchandfilter.com/documentation/3rd-party/post-grid/


    Anonymous
    Inactive

    I’m using WP Bakery. I can search and display the results fine in a single column. How can I get this to display in two columns or masonry grid? Thanks.

    #208539

    Anonymous
    Inactive

    Ok I installed the file, it creates a plugin called:
    Search & Filter Pro – WP Bakery Page Builder

    Now help me understand better: should I use the Kleo or Post Grid, and select Search / Filter as a source? It seems to me that this picks up from my search and filter standard (non pro) installation I did before, and not much happens.. see https://billionwonders.com/search-form-test/ and screenshot https://ibb.co/jJWDzFW

    What is the ideal set-up for what I described above?

    “If you look at the homepage https://billionwonders.com/, below the text “Post Masonry”, you see what Kleo automatically does. It’s quite nice, as with a single click the posts would disappear/re-appear without the page re-loading. It misses custom taxonomies and multiple hierarchical choices, hence why I decided to try S&F. Can I achieve something similar here?”

    #208397

    Anonymous
    Inactive

    Theme is “Kleo”, website under constructions, but the basics should still work.

    Few examples:
    – At this page I have inserted the code and the results. Despite the custom css, the filter shows in a really messy way, and I’m struggling to make it vertically centered – with each box equal distanced and equal sized on the same line
    https://billionwonders.com/search-form-test/

    – The real desired use though, would be on a page like this one, where I would have Map, Filter, adn a few Posts in masonry/grid I would have pre-selected. With the filter I would like to let users pick posts to display below it, effectively changing the masonry
    https://billionwonders.com/welcome-back/

    If you look at the homepage https://billionwonders.com/, below the text “Post Masonry”, you see what Kleo automatically does. It’s quite nice, as with a single click the posts would disappear/re-appear without the page re-loading. It misses custom taxonomies and multiple hierarchical choices, hence why I decided to try S&F. Can I achieve something similar here?

    Thanks
    Ugo

    #207250

    Trevor
    Participant

    Hi

    I think it is not fully working as a JavaScript error is being thrown:

    https://www.screencast.com/t/4LKSnUNT

    It looks like your theme is using Masonry, and this is hard to re-trigger on an Ajax call. If Ajax is OFF, does it all work?

    #207248

    Anonymous
    Inactive

    Thanks Trevor,
    Don´t worry, we have chosen not to use any of this and use the masonry that comes by default in the template .. we will show it in another way, because the visualization is quite disastrous.
    Thanks for your help and your attention.

    #207205

    Trevor
    Participant

    Each theme tends to integrate Masonry differently. Which theme are you using?

Viewing 10 results – 81 through 90 (of 354 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.