# Hide content on different CMS item pages?

**URL:** <https://forum.wixstudio.com/t/hide-content-on-different-cms-item-pages/64676>\
**Category:** Ask the community\
**Tags:** wix-studio, question, cms\
**Created:** [November 14, 2024, 2:08pm UTC](https://forum.wixstudio.com/t/hide-content-on-different-cms-item-pages/64676 "2024-11-14T14:08:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Pratham](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/pratham/32/119586_2.png) [@Pratham](https://forum.wixstudio.com/u/Pratham)\
**Post date:** [November 14, 2024, 2:57pm UTC](https://forum.wixstudio.com/t/hide-content-on-different-cms-item-pages/64676/2 "2024-11-14T14:57:02Z")

</div>

You can achieve that with a little bit of Velo code.

Always search on the forum first for similar questions before posting your own.

> [@How to hide a section on a dynamic item page when a specific CMS field is blank](https://forum.wixstudio.com/t/how-to-hide-a-section-on-a-dynamic-item-page-when-a-specific-cms-field-is-blank/60241/13):
>
> I use the below example all the time. Note the exclamation mark before currentItem, this means ‘if empty’. Replace: #yourDatasetID with the ID of your dynamic page dataset databaseFeildID with the field ID in the CMS you want to check #itemToHideID with ID of the page item you wish to hide const currentItem = $w('#yourDatasetID').getCurrentItem(); $w.onReady(function () { if (!currentItem.databaseFeildID) { $w("#itemToHideID").collapse(); } });

---

_[View the full topic](https://forum.wixstudio.com/t/hide-content-on-different-cms-item-pages/64676)._
