# Elements not collapsing in Live site, Working perfectly in Sandbox preview

**URL:** <https://forum.wixstudio.com/t/elements-not-collapsing-in-live-site-working-perfectly-in-sandbox-preview/12720>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [January 30, 2019, 9:08am UTC](https://forum.wixstudio.com/t/elements-not-collapsing-in-live-site-working-perfectly-in-sandbox-preview/12720 "2019-01-30T09:08:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsmash95](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/gsmash95/32/4428_2.png) [@gsmash95](https://forum.wixstudio.com/u/gsmash95)\
**Post date:** [January 30, 2019, 9:08am UTC](https://forum.wixstudio.com/t/elements-not-collapsing-in-live-site-working-perfectly-in-sandbox-preview/12720/1 "2019-01-30T09:08:37Z")

</div>

I’m having an issue with some particular pages on the live site. A collapsed element is not getting collapsed in live site, but works perfectly in Sandbox preview.  
Also, when I do a console.log to check if the elements are collapsed it shows a “true” in both the preview mode an the live site.  
Need help to fix this ASAP as I can’t figure out what is going wrong.

 ![](https://us1.discourse-cdn.com/wix/original/3X/a/b/aba09b05e7defe87ac782aabbf20c0db7c0b8a28.png)

 ![](https://us1.discourse-cdn.com/wix/original/3X/4/8/48d9bdddf76aafa425e79c7f5ca2291983de3677.png)

 ![](https://us1.discourse-cdn.com/wix/original/3X/2/0/20b8829fbfbae302ddff8358e807bd0970130c3c.png)

---

<div class="post-metadata">

**Author:** ![doron-alkalay](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/doron-alkalay/32/2887_2.png) [@doron-alkalay](https://forum.wixstudio.com/u/doron-alkalay)\
**Post date:** [January 30, 2019, 10:51am UTC](https://forum.wixstudio.com/t/elements-not-collapsing-in-live-site-working-perfectly-in-sandbox-preview/12720/2 "2019-01-30T10:51:20Z")

</div>

Hi @gsmash95 ,

Please share a link to your site/editor so one of us, the Wix Code team, can inspect your site and provide you with an answer.  
Rest assure that only authorized personnel can inspect your site and use your editor link.

Doron.

---

<div class="post-metadata">

**Author:** ![gsmash95](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/gsmash95/32/4428_2.png) [@gsmash95](https://forum.wixstudio.com/u/gsmash95)\
**Post date:** [January 30, 2019, 10:55am UTC](https://forum.wixstudio.com/t/elements-not-collapsing-in-live-site-working-perfectly-in-sandbox-preview/12720/3 "2019-01-30T10:55:49Z")

</div>

Hi Doron,  
Thanksfor your reply.  
Here’s the editor link- [https://editor.wix.com/html/editor/web/renderer/edit/92e376d4-928e-4e7a-ba4c-688919a05980?metaSiteId=3b932ec2-da72-45b7-adae-b2c247d5fe72&editorSessionId=5691e182-8771-4631-b00c-34d55d1d4717&referralInfo=dashboard](https://editor.wix.com/html/editor/web/renderer/edit/92e376d4-928e-4e7a-ba4c-688919a05980?metaSiteId=3b932ec2-da72-45b7-adae-b2c247d5fe72&editorSessionId=5691e182-8771-4631-b00c-34d55d1d4717&referralInfo=dashboard)

The same code is there on a few more pages.  
Thanks,  
Sameer

---

<div class="post-metadata">

**Author:** ![doron-alkalay](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/doron-alkalay/32/2887_2.png) [@doron-alkalay](https://forum.wixstudio.com/u/doron-alkalay)\
**Post date:** [January 30, 2019, 12:12pm UTC](https://forum.wixstudio.com/t/elements-not-collapsing-in-live-site-working-perfectly-in-sandbox-preview/12720/4 "2019-01-30T12:12:18Z")

</div>

Hi again,

I’ve looked at your site and have to say that it’s nearly impossible to find what the issue is.  
Your code is very complicated and I can only suggest for now to break it into smaller and shorter functions.

Please try to recreate the issue you’re describing in a test page that includes only the relevant code.

Doron.

---

<div class="post-metadata">

**Author:** ![gsmash95](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/gsmash95/32/4428_2.png) [@gsmash95](https://forum.wixstudio.com/u/gsmash95)\
**Post date:** [January 30, 2019, 12:15pm UTC](https://forum.wixstudio.com/t/elements-not-collapsing-in-live-site-working-perfectly-in-sandbox-preview/12720/5 "2019-01-30T12:15:51Z")

</div>

Hi Doron,  
Thanks. But i just don’t understand how the preview in the editor is totally perfect, but the live site shows up differently. Recreating it seems tough, cause there’s a lot of data in and out.  
Could you suggest some ideas that I could look into to try and debug the issue? Like what exactly could be going differently in the sandbox mode and the live site?  
I could speak and explain the code to you personally if required.  
Thanks,  
Sameer
