# Feature request: ability to remove iubenda banners from certain pages

**URL:** <https://support.iubenda.com/t/feature-request-ability-to-remove-iubenda-banners-from-certain-pages/3993>\
**Category:** Feature requests\
**Created:** [August 25, 2021, 9:38pm UTC](https://support.iubenda.com/t/feature-request-ability-to-remove-iubenda-banners-from-certain-pages/3993 "2021-08-25T21:38:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergio](https://yyz2.discourse-cdn.com/flex048/user_avatar/support.iubenda.com/sergio/32/582_2.png) [@sergio](https://support.iubenda.com/u/sergio)\
**Post date:** [August 25, 2021, 9:38pm UTC](https://support.iubenda.com/t/feature-request-ability-to-remove-iubenda-banners-from-certain-pages/3993/1 "2021-08-25T21:38:05Z")

</div>

New feature request here. Please upvote if you find this useful.&nbsp;

Need the ability to remove cookie banner popups from certain pages on my wordpress site. I have landing pages and informational pages as well as certain sales pages where I do not want nor need the iubenda cookies to pop up.&nbsp;&nbsp;

A simple checkbox inside my wordpress page would be great or adding a custom code to a specific page would also work. I can add a code to a specific page inside my wordpress pages.&nbsp;

* * *

_Importato da [support.iubenda.com](http://support.iubenda.com) (topic #42000297477) · 👍 5 upvote su Freshdesk · 👁 1419 visualizzazioni_

---

<div class="post-metadata">

**Author:** ![Jacopo](https://yyz2.discourse-cdn.com/flex048/user_avatar/support.iubenda.com/jacopo/32/5_2.png) [@Jacopo](https://support.iubenda.com/u/Jacopo)\
**Post date:** [September 10, 2021, 9:44am UTC](https://support.iubenda.com/t/feature-request-ability-to-remove-iubenda-banners-from-certain-pages/3993/2 "2021-09-10T09:44:45Z")

</div>

Hello Sergio,

Thank you for your request.&nbsp;

I'm glad to inform you that your request has been taken into account and our developers team is already working on its implementation.  
We are going to update this thread as soon as the feature is online.

In the meantime, don't hesitate to contact us again if you need further information or assistance.

Kind Regards,

The iubenda team

---

<div class="post-metadata">

**Author:** ![psangtang7](https://avatars.discourse-cdn.com/v4/letter/p/eb8c5e/32.png) [@psangtang7](https://support.iubenda.com/u/psangtang7)\
**Post date:** [September 19, 2021, 10:24am UTC](https://support.iubenda.com/t/feature-request-ability-to-remove-iubenda-banners-from-certain-pages/3993/3 "2021-09-19T10:24:42Z")

</div>

Android com  
Chrome browser.

---

<div class="post-metadata">

**Author:** ![fduser42031922039](https://avatars.discourse-cdn.com/v4/letter/f/958977/32.png) [@fduser42031922039](https://support.iubenda.com/u/fduser42031922039)\
**Post date:** [November 8, 2023, 2:27pm UTC](https://support.iubenda.com/t/feature-request-ability-to-remove-iubenda-banners-from-certain-pages/3993/4 "2023-11-08T14:27:55Z")

</div>

Hi has there been an update to this?

---

<div class="post-metadata">

**Author:** ![michele.delmonaco](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@michele.delmonaco](https://support.iubenda.com/u/michele.delmonaco)\
**Post date:** [January 15, 2024, 11:15am UTC](https://support.iubenda.com/t/feature-request-ability-to-remove-iubenda-banners-from-certain-pages/3993/5 "2024-01-15T11:15:38Z")

</div>

Hello there,

a specific feature is not available however with a workaround it is possible to hide the banner on certain pages by adding a custom script.

Please check the example below:

```
<script type="text/javascript">
var _iub = _iub || [];
_iub.csConfiguration = {"cookiePolicyUrl":"http://provawordpress.local/cookie-policy/","consentOnContinuedBrowsing":false,"enableTcf":false,"whitelabel":false,"lang":"en-GB","siteId":1129739,"floatingPreferencesButtonDisplay":"bottom-right","perPurposeConsent":true,"cookiePolicyId":33731144, "banner":{ "closeButtonRejects":true,"acceptButtonDisplay":true,"customizeButtonDisplay":true,"explicitWithdrawal":true,"position":"float-top-center","closeButtonCaption":"<button type=\"button\" class=\"iubenda-cs-close-btn\" tabindex=\"0\" role=\"button\" aria-pressed=\"false\" style=\"background-color: rgb(239, 239, 239) !important; border-radius: 55px !important; border: 1px solid rgb(119, 119, 119) !important; font-size: 16px !important; font-weight: bold !important; padding: 10px 20px !important; height: 34px !important; color: rgb(102, 102, 102) !important; visibility: visible;\">Continue without accepting</button>" }, "footer":{"btnCaption":"Custom Test Here"}};

\</script\>  
\<script type=“text/javascript” src=“[//cdn.iubenda.com/cs/tcf/stub-v2.js](https://cdn.iubenda.com/cs/tcf/stub-v2.js)”\>\</script\>  
\<script type=“text/javascript” src=“[//cdn.iubenda.com/cs/iubenda\_cs.js](https://cdn.iubenda.com/cs/iubenda_cs.js)” charset=“UTF-8” async\>\</script\>

\<script\>

//custom script to add

if(window.location.pathname === “/cookie-policy/”) {

```
 document.head.innerHTML = document.head.innerHTML + '&lt;style&gt;div#iubenda-cs-banner { display: none !important; } &lt;/style&gt;';

```

}  
\</script\>
```

&nbsp;The custom script (to be modified according to your scenario) adds a CSS rule that hides the CS banner on cookie-policy page. In this case, the URL of the page that hosts the Cookie Policy is [http://provawordpress.local/cookie-policy/](http://provawordpress.local/cookie-policy/)

```
<script>
if(window.location.pathname === “/cookie-policy/”) {
document.head.innerHTML = document.head.innerHTML + ‘<style>div#iubenda-cs-banner { display: none !important; } </style>’;
}
</script>
```

&nbsp;How to customize it:

So if your Cookie Policy is on a page with URL [www.test.com/cpPage,](http://www.test.com/cpPage) the previous script should be modified in this way:

&nbsp;

```
<script>
if(window.location.pathname === “/cpPage/”) {
document.head.innerHTML = document.head.innerHTML + ‘<style>div#iubenda-cs-banner { display: none !important; } </style>’;
}
</script>
```

&nbsp;Let us know if you have any doubt or question.

Kind Regards,

The iubenda team

&nbsp;
