Jump to content
WebFlake
  • 0

Remove the shrinking from the NavBar


ilovekiwi

Question

3 answers to this question

Recommended Posts

  • 1

Go into your theme and find this template:

core -> global -> global -> js_theme

Remove the following Javascript:

{{if theme.feature_2}}
		
			var headerHeight = {theme="logoheight"};
			var minHeaderHeight = {theme="ipsfocus_text"};
			var heightElements = '.wDesktop a.logo';
			
			$(window).scroll(function(){
				var amountScrolled = $(window).scrollTop();
				var maxScrollAmount = headerHeight - minHeaderHeight;
				var newHeight = headerHeight - amountScrolled;
				
				if((amountScrolled >= 0) && (amountScrolled <= maxScrollAmount)){
					$(heightElements).css({
						"height": newHeight + "px",
						"max-height": newHeight + "px",
					});
				} else if($(window).scrollTop() > maxScrollAmount){
					$(heightElements).css({
					"height": minHeaderHeight + "px",
					"max-height": minHeaderHeight + "px",
					});
				}
			});
			
		{{endif}}

 

  • Support Team - September 9th, 2017 - June 8, 2018
  • Junior Moderator - December 14th 2018 - November 16th, 2019
  • Designer - November 16th, 2019 - June 5th, 2020
  • Moderator - June 5th, 2020 - August 28th, 2020
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...