Bug with a title on the mobile version

Hello !
I used a prewritten code for hiding the title of my website on the first page https://support.wix.com/en/article/corvid-tutorial-hiding-an-element-on-certain-pages

It’s working but on the mobile website the title disappeared on all pages when I navigate unless you refresh the page.

my webstite is www.adrienvanmelle.com

The bug is on all types of phone (I checked on at least four).

Thanks a lot for your help !!!

Adrien

If you hide a global element, it’ll stay hidden until you make it show (use the show() function if the page is not the first page).

Thanks J.D. !
So if I want to hide a global element on one page (it’s the first one) I need to enter the code to hide it on this specific page and then put the show() code on every other pages ?

No, there’s some much easier solutions, but first let me know if the ‘first page’ is always the same page or maybe every page can be the first one (if the user gets to it first).

@jonatandor35 No I juste want to hide the global element from the “home”

@adrienvanmelle So you have a site panel for code that relates to global elements.
Put there the code to show the element, and on the home page panel, put the code to hide it.

  • if this element only exists on mobile mode (like Wix’s mobile quick action bar) you may like to put it inside an IF block to avoid errors:
import wixWindow from 'wix-window';
 $w.onReady(function () { 
 if(wixWindow.formFactor === "Mobile"){ 
$w("#myElement").show();
} 
})

Great it works ! Thanks a lot !

@adrienvanmelle no problem. Happy to help.