Viewing 1 replies (of 1 total)
  • Smat Placid

    (@www_smatplacid_com)

    Hi,

    I did it right now with my own project. I simply used “ScrollToFixed” (https://goo.gl/ptqduY) and put that code in my header.php

      <script>
    
        jQuery(document).ready(function($) {
          var stickyNavTop = $('.sidebar-content').offset().top;
    
          var stickyNav = function(){
            var scrollTop = $(window).scrollTop();
    
            if (scrollTop > stickyNavTop) {
              $('.sidebar-content').addClass('sticky');
            } else {
              $('.sidebar-content').removeClass('sticky');
            }
          };
    
          stickyNav();
    
          $(window).scroll(function() {
            stickyNav();
          });
        });
    
      </script>

    Best, Roman

Viewing 1 replies (of 1 total)

The topic ‘Scrolling TOC’ is closed to new replies.