# Delete an Element from other pages and retain it in one page

**URL:** <https://forum.wixstudio.com/t/delete-an-element-from-other-pages-and-retain-it-in-one-page/63500>\
**Category:** Ask the community\
**Tags:** technical-talk, wix, design, question\
**Created:** [October 13, 2024, 4:48pm UTC](https://forum.wixstudio.com/t/delete-an-element-from-other-pages-and-retain-it-in-one-page/63500 "2024-10-13T16:48:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sachi\_Mahajan](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sachi_mahajan/32/98232_2.png) [@Sachi\_Mahajan](https://forum.wixstudio.com/u/Sachi_Mahajan)\
**Post date:** [October 13, 2024, 4:48pm UTC](https://forum.wixstudio.com/t/delete-an-element-from-other-pages-and-retain-it-in-one-page/63500/1 "2024-10-13T16:48:29Z")

</div>

**Question:**  
I have created a project pages layer. I want have added an element in one of the pages, but it’s repeated in all the pages. Is there any way I can keep the element in one page and delete those in other pages?

**Product:**  
Wix Editor

**What are you trying to achieve:**  
I want to add an element of pro gallery for comic showcase

**What have you already tried:**  
I have tried the Google methods, unhelpful.

---

<div class="post-metadata">

**Author:** ![DeanAyalon](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/deanayalon/32/94633_2.png) [@DeanAyalon](https://forum.wixstudio.com/u/DeanAyalon)\
**Post date:** [October 13, 2024, 5:10pm UTC](https://forum.wixstudio.com/t/delete-an-element-from-other-pages-and-retain-it-in-one-page/63500/2 "2024-10-13T17:10:15Z")

</div>

Is it a dynamic page?  
If so, you can have a Boolean field in the CMS (e.g. staticContent)

Set the contents to be automatically hidden/collapsed

Then in the page code, you can do something like this:

```js
item = $w('#dynamicDataset').getCurrentItem()
if (item.showStatic) $w('#staticContent').show() // or expand()

```
