Course Details Widget Follow the User when they Scroll

Please go to your wplms-customizer.php file in wplms customizer plugin or functions.php in your child theme and add the following code at the bottom of the file.

function wplms_fix_course_pricing(){
    position: fixed;
    top: 80px;
    z-index: 99;
    var windowWidth = $(window).width();
    if(windowWidth >= 768){
        var $this = $(this);
        var height = $this.height();
        var footer_top = $('footer').offset().top;
        var left = $this.offset().left;
        var width = $this.width();

            var st = $(this).scrollTop();
            if(st > height && (st + height + 70) < footer_top ){



Was this article helpful?

Related Articles


  1. homeforsell

    Please check again for this TIP.

    It’s not OK for both ways!

  2. H.K. Latiyan

    It works fine, but this tip requires footer layout in the theme, so go to wp-admin->appearance->customize->footer->footer style and select default footer.

Leave a Reply to H.K. Latiyan Cancel Reply