mobile format + 3js html issue
-
hello, i've just added a 3js script to one of my pages and everything seems to be working fine. however when i add the same script to the mobile layout, instead of seeing it on mobile, i just see 2 of the same containers on my desktop site. is it something to do with my code?
i've currently removed it from the mobile page in order for the desktop page to display correctly, but i can redo it if/when needed.
here's the page: senoglu.co/contact
-
hello!
the custom phone layout does the following:
it adds another markup that is only shown on phone.
and the desktop markup is shown on desktop.so basically you have code for both, so if u put something into both.
then it is there twice in your website.this can be problematic if some code expects some markup to only exist one time on the page.
a workaround can be to not use a custom phone layout, by deleting it:

or if you can, code it in a way where it works
-
thank you armin, deleted the phone layout and it seems to work fine.
I also code custom websites or custom Lay features.
šæ Email me here: šæ
info@laytheme.com
Our Web Development company: 100k.studio
Want to tip me? https://www.paypal.com/paypalme/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options ā Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it