Hey all,
I’m having a problem in my code where I rename items in the properties tab like so:
Yet when I reference it in my code, I get “
#mobilesplash” is not a valid selector:
This is what it looks like in mobile editor:
and then in preview:
It’s not the first time I use this code; in my previous web build I was able to successfully do this. What am I doing wrong? I’ve read in a forum that you need to publish the website first before it updates the ID’s, and I tried this on a sample website of mine to no avail. Any help is greatly appreciated.
Hi!
Please share a link to your site so one of us (WixCode Team) can inspect it and provide you with a solution.
Doron.
Thanks for the reply Doron!
www.favici.com
Hi garwinglai,
I see that you trying to this from backend code (lxenp.js file is in “Backend” folder). If you wan to access page elements, you should do it from Page script (i.e. Home).
Hi Povilas,
I have it opened here to test the code, but the same code exists on the home page script. As an update though, I got the code to work on a duplicate site, which confirms that there is some bug at play here from the server side. Still no luck on the main site.