Additional code on Desktop layout only?
The code runs something that is only really worthwhile on desktop, and works fine, but I don't want it to run on mobile. So, I created the custom mobile layout, clicking on the phone icon and choosing "start with empty layout" and created a new design, but the code still runs there on mobile.
Is there a way to add code this way and have it only work on the desktop version of the same page?
It could be that you are loading the page in Desktop view and therefore the JS into the browser and reducing the browser size to mobile layout but then the JS is still present?, unsure sorry.
Would you be able to post your custom HTML/JS and then i can have a better idea and run some tests for you!!! :)
Interesting question and worth investigating @R-Seance
Talk soon & best wishes
thanks for the reply!
The JS still runs on my mobile too! Do you have an email I can send code / links to? Just because it's something I'm in the middle of working on for someone.
Send me a message via 'chats' and we can disclose information there - or talk about a more secure email if you wish
Hey Richard, not sure the chat is working, do you have an email I can send stuff to? Thanks!
@Richard Hey Richard, just wondering if you got my email?! Thanks!
I did yes thank you! 🌝I am looking into it right now :)
Will reply as soon as possible, im sorry to keep you waiting and for the delay this week 🙈
Before you post
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. Now see if your problem solved itself
5. Go here, see if your problem is listed here:
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it