• Resolved tmbreuker

    (@tmbreuker)


    Tried this jQuery on a single page, but I cannot update the page.
    Replacing $ with jQuery didn’t work. Any ideas?

    $(function(){
    var container = $(‘#floating-container’);
    var minTop = $(‘header’).outerHeight();
    var maxTop = $(‘footer’).offset().top – container.outerHeight();

    $(document).scroll(function() {
    container.css(‘top’, Math.min( Math.max(minTop, $(document).scrollTop()), maxTop ));
    });
    });

Viewing 1 replies (of 1 total)
  • Plugin Author WraithKenny

    (@wraithkenny)

    This is a support question for jQuery or WordPress generally, not a support question for this plugin.

    You probably have to enqueue the jQuery on the page, if your theme isn’t doing so already.

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot ad jQuery to a single page’ is closed to new replies.