I’ve found a tutorial by Wix on how to hide a logo on the home page, but to show it inside other pages, using code. I followed the instructions and it worked, but not so good.
When the browser loads the page, it hides the logo in the other pages too. But once I refresh the page, it suddenly appears.
Did I do something wrong with the code?
This is the code I have in the homepage.
// For full API documentation, including code examples, visit https://wix.to/94BuAAs
$w.onReady(function () {
// Hides the element when the page loads
$w("#smallLogo").hide();
});
You can see the logo at the top left of the header.
This is a link to the site
Since the logo is in the header which is a global element once you hide it, it’ll stay hidden until you explicitly show it again.
So go to the SITE code panel (not the page code panel) and add there: