• Hi, the preloader animation javascript is conflicting with a plugin. Could you tell me how to remove it via child theme functions.php please?
    It’s deactivating hyperlinks on Responsive Pricing Table buttons.

    This is the code that’s doing it.

    <script>
    jQuery(function($){
    $(window).on('load', function(){
    setTimeout(function(){
    $('#preloader').fadeOut(1000); }, 10000)
    $('#preloader').fadeOut(1000);
    $('#mainframe').animate({opacity:1});
    });
    $(window).on('unload', function(){
    $('#preloader').fadeIn(100);
    });
    $('body').on('click','a', function(e){
    e.preventDefault();
    if($(this).attr('target')==undefined &&
    this.href.indexOf('#')==-1) {
    $('#preloader').fadeIn(100);
    location.href = this.href;
    }
    });
    
    $('#preloader').on('click', function(){
    alert(1);
    $('#preloader').fadeOut(1000);
    });
    
    setTimeout(function(){ $('#preloader').fadeOut(1000);
    }, 15000)
    });
    </script>

    Thanks

  • The topic ‘remove preloader’ is closed to new replies.