Forums Forums Search & Filter Pro How to warp .search-filter-scroll-loading in a div

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #157616

    Hello, i want to wrap .search-filter-scroll-loading with a div that contains the class col-xs-12.

    Is there a hook for that or something?

    I did try to do it with jquery…

    $(document).bind("DOMNodeInserted",function () {
      $( ".search-filter-scroll-loading" ).wrap( "<div class='col-xs-12'></div>" );
    });

    But it makes the browser to get stuck or crash…

    Thank you.

    Trevor
    #157636

    I do not know if it is possible, but try this instead:

    (function ( $ ) {
    	"use strict";
    	
    	$(document).ready(function(){
    		  $( ".search-filter-scroll-loading" ).wrap( "<div class='col-xs-12'></div>" );
    	});
    }(jQuery));

    I warn you that this is untested. If you use Ajax on the page, it might also disappear when Ajax refresh is used.

    There is no hook or filter in the current plugin to do this.

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