# How can you completely remove an element in a block?

**URL:** https://forum.pinegrow.com/t/how-can-you-completely-remove-an-element-in-a-block/8185
**Category:** WordPress
**Tags:** wordpress
**Created:** [June 28, 2023, 9:03pm UTC](https://forum.pinegrow.com/t/how-can-you-completely-remove-an-element-in-a-block/8185 "2023-06-28T21:03:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jonroc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/jonroc/32/2805_2.png) [@jonroc](https://forum.pinegrow.com/u/jonroc)
#### Post date: [June 28, 2023, 9:03pm UTC](https://forum.pinegrow.com/t/how-can-you-completely-remove-an-element-in-a-block/8185/1 "2023-06-28T21:03:53Z")

</div>

I’ve tried multiple times over the years to remove an element via a toggle switch but I get unexpected results.

What is the proper way to have an entire element removed inside of a block when the toggle on the element is set to true?

-Thanks!

---

<div class="post-metadata">

### Author: ![jonroc](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/jonroc/32/2805_2.png) [@jonroc](https://forum.pinegrow.com/u/jonroc)
#### Post date: [June 29, 2023, 1:44pm UTC](https://forum.pinegrow.com/t/how-can-you-completely-remove-an-element-in-a-block/8185/2 "2023-06-29T13:44:18Z")

</div>

I have figured out how to show an element with the following settings, but the toggle breaks if I try to have the element shown by default and hidden when toggled.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/e/e481be8caff3e15b0e32709d2b39c6a92d89e5c5.png)

I also tried the new Block Condition attribute but it would not pick up the “hide\_address” attribute ID in the dropdown menu and when I add it manually it does nothing.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/e/e93555622dceae075246f269e6e756ff62b3013b.png)
