Home Forums Fusion Using "The Grid" plugin

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Joshua 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #47528

    chanceimages
    Participant

    Hi, I want to use The Grid plugin by Theme-one (https://codecanyon.net/item/the-grid-responsive-wordpress-grid-plugin/13306812)

    I contacted them about the AJAX functionality and they said:

    Making a 3rd party script work with Ajax will depend of how your page implement it. So, there isn’t any default solution for that. You can still try with this code but it may not work or create issues depending of your theme:

    $(‘.tg-grid-holder’).The_Grid();
    $.TG_media_init();

    How would I go about making this work with Fusion and the AJAX loading?

    #47529

    Joshua
    Keymaster

    Perfect- that should be just about everything you need. Add this code to your Custom Javascript field in Customizer:

    Barba.Dispatcher.on('newPageReady', function(currentStatus, oldStatus, container) {
      $(‘.tg-grid-holder’).The_Grid();
      $.TG_media_init();
    });

    If it doesn’t quite work on AJAX load after you add this, please post back with your link and I’ll take a look.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.