Navigation background gets transparent after reload

2 replies · opened Feb 28, 2019

Dddesign2Feb 28, 2019

I have the problem that the menu becomes transparent like in one of the demos when I refresh the page.
For a better understanding, please watch the video:

click here

SSemicolon WebSTAFFMar 1, 2019

Hello,

Thanks for the Explanation! We are looking into this issue and will get back to you shortly. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

SSemicolon WebSTAFFMar 4, 2019

Hello,

Please find the following code on the Page:

var headerDefinedOffset = $header.attr('data-sticky-offset');
if( typeof headerDefinedOffset !== 'undefined' ) {
	if( headerDefinedOffset == 'full' ) {
		headerWrapOffset = $window.height();
		var headerOffsetNegative = $header.attr('data-sticky-offset-negative');
		if( typeof headerOffsetNegative !== 'undefined' ) { headerWrapOffset = headerWrapOffset - headerOffsetNegative - 1; }
	} else {
		headerWrapOffset = Number(headerDefinedOffset);
	}
}

and replace it with:

var headerDefinedOffset = $header.attr('data-sticky-offset');
if( typeof headerDefinedOffset !== 'undefined' ) {
	if( headerDefinedOffset == 'full' ) {
		headerWrapOffset = $window.height();
		var headerOffsetNegative = $header.attr('data-sticky-offset-negative');
		if( typeof headerOffsetNegative !== 'undefined' ) { headerWrapOffset = headerWrapOffset - headerOffsetNegative - 1; }
	} else {
		headerWrapOffset = Number(headerDefinedOffset);
	}
} else {
	headerWrapOffset = headerOffset;
}

This will definitely fix your issue. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard