# Remove blank space and advertisement text on unfilled ad

**URL:** <https://meta.discourse.org/t/remove-blank-space-and-advertisement-text-on-unfilled-ad/280558>\
**Category:** Product Support\
**Tags:** advertising\
**Created:** [September 29, 2023, 5:34pm UTC](https://meta.discourse.org/t/remove-blank-space-and-advertisement-text-on-unfilled-ad/280558 "2023-09-29T17:34:04Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![codergautam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codergautam/32/261083_2.png) [@codergautam](https://meta.discourse.org/u/codergautam)\
**Post date:** [September 30, 2023, 2:30am UTC](https://meta.discourse.org/t/remove-blank-space-and-advertisement-text-on-unfilled-ad/280558/5 "2023-09-30T02:30:30Z")

</div>

I figured it out!!

It will keep the Advertisement text hidden by default, and only show it after confirming the ad is filled and displayed. This way I can ensure there is no confusion.

If you want to enable this on your forum, take a look at the detailed tutorial I posted on my blog

[https://blog.codergautam.dev/how-to-hide-unfilled-advertisements-in-discourse-adplugin/](https://blog.codergautam.dev/how-to-hide-unfilled-advertisements-in-discourse-adplugin/)

Edit: using revised version of working code after Firepup found a bug

Hope this helps someone!

---

_[View the full topic](https://meta.discourse.org/t/remove-blank-space-and-advertisement-text-on-unfilled-ad/280558)._
