Toggle menu in mobile

Hi,

Mi toggle menu does not work correctly in mobile version. When I give the icon to open it, I link directly to the Google website. I do not get it. I have not put any link anywhere. I have the primary menu selected.

Do they know where the bug may be or how to find it?

My adress -> Festefort.cat

Thank you.

Hi @festefort,

Thanks for reaching out.

It’s due to this custom javascript you have added in Theme Options > JS

// Header clickable 
// ==============================
$(".homeclick").click(function() {
    window.location = "http://google.com";
});

Please remove it :slight_smile:, then you also have this code in your header custom CSS

jQuery ( document ).on('click', '.homeclick', function() {
window.location.href = 'http://www.festefort.cat';
} );

But with that code, the mobile menu will not really work since it will reload the page. Please remove it as well if you wish to use the mobile menu toggle.

Thanks!

1 Like

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