Static header not working

Hi Team,

I am working on a client’s site. Heres the url - http://www.creativeamit.com/championsacademy/
Issue is that even after selecting the static header in header section in customizer, header renders as fixed on all pages. Can you please help me fix the issue?

Amit

1 Like

Hi @amit3076,

Thanks for writing in.

First, backup your site so that you can revert it back again.

Then, as I checked your setup, you are using an old version.

Please update your setup to the latest version.

Let us know how it goes.

Thanks.

As you said, I updated the theme and all plugins but still issue doesn’t resolve.

Hi There,

If you have any cache plugins please flush your cache.

Also please try making the changes on Wordpress top admin bar > X > Theme Options > Header instead.

If the issue continues, please provide your WP Admin credentials in a secure note so we can take a closer look.

Thank you

I have already tried in "admin bar > X > Theme Options > Header ". There too its static selected. And I am not using any cache plugin. Will share the credentials in another reply.

Thanks.
Amit

Hi Amit,

Thank you for the credentials. There’s a custom JS code that is making the header fixed. Please remove the following from GLOBAL JS:

jQuery(document).ready(function($){
	var topbar = $('.x-topbar').height();
	$(window).scroll(function(){
		if ($(this).scrollTop() > 0) {
			$('.x-navbar, .x-topbar').css({"position": "fixed", "width": "100%"});
			$('.x-navbar').css("margin-top", topbar + 'px');
		} else {
			$('.x-navbar, .x-topbar').css("position", "relative");
			$('.x-navbar').css("margin-top", "0");
		}
	});
});

Hope this helps.

Thanks. It worked.

You’re welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.