[Pro] Sticky Nav Menu

And referring to Todd’s suggestion try the following (where 414 is the 6S+ width) in place of the current Script block you have in before End Body.

<script type="text/javascript">
if($(window).width() > 414) {
		$(function(){ // document ready

		  if (!!$('.sticky').offset()) { // make sure ".sticky" element exists

		    var stickyTop = $('.sticky').offset().top; // returns number 

		    $(window).scroll(function(){ // scroll event

		      var windowTop = $(window).scrollTop(); // returns number 

		      if (stickyTop < windowTop){
		        $('.sticky').css({ position: 'fixed', top: 0 });
		      }
		      else {
		        $('.sticky').css('position','static');
		      }

		    });

		  }

		});
		}
</script>

D


freewaytalk mailing list
email@hidden
Update your subscriptions at: