- This topic has 1 reply, 2 voices, and was last updated 8 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › How to warp .search-filter-scroll-loading in a div
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.
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.