Back button error

Hi,
I’m having this error on my website. I have code to my menu disappear when I’m entering a certain page and to the menu appear after scrolling down a little bit. Everything is working if I use always the buttons on the website, but if I hit my browser’s back button the menu has an error. I believe is because of the code of the page. I have images to show you.

Fixed menu at top, bottom and sides of page


Selecting the “works” button (everything normal)


Selecting a project, code says to hide the menu and appears only after scrolling down (normal)


Now if I hit the back button of my browser instead of hitting “works” button to chose another project, some parts of the menu disappear, and sometimes all the menu disappears.


Here’s an image of the code I’m using to hide the menu (I have containers and buttons). “faixa” is the strip that appears first on project page

How do I fix this error?

Thanks,
Fernando

Anyone?

Hi Fernando!

Please share a link to your site so one of us, WixCode team, can inspect it and provide you with an answer.

Doron.

Hi Doron,

My is site fernandopenderlico.com

Thanks,
Fernando

Hi again Fernando!

We’re looking into the issue you mentioned and I will update this thread as soon as we’ll have a solution for you.

Doron.

HI! Please add the same code as for onViewportLeave() to Site tab to fix your error let fadeOptions = {
“duration”: 250,
“delay”: 10
};

$w.onReady(function () {
$w(‘#head’).show(“fade”, fadeOptions);
$w(‘#homebutton’).show(“fade”, fadeOptions);
$w(‘#foot’).show(“fade”, fadeOptions);
$w(‘#email’).show(“fade”, fadeOptions);
$w(‘#behance’).show(“fade”, fadeOptions);
$w(‘#instagram’).show(“fade”, fadeOptions);
$w(‘#tumblr’).show(“fade”, fadeOptions);
$w(‘#linkedin’).show(“fade”, fadeOptions);
$w(‘#about1’).show(“fade”, fadeOptions);
$w(‘#works1’).show(“fade”, fadeOptions);
$w(‘#box1’).show(“fade”, fadeOptions);
$w(‘#box2’).show(“fade”, fadeOptions);
});

Hi olesiaz,
It didn’t work. I even tried to copy all code to Site tab but the error remains.