> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.pandectes.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to use enforced consent (modals) on the new banner

### Overview

Enforced consent displays the dialog as a **modal** with a background overlay until the visitor interacts.

**Enforced consent (modals)** makes the page behind the banner visually inactive. Visitors should use Accept, Decline, or Preferences before using the store.

**Lock background scroll** can be enabled with modals so the page cannot be scrolled while the banner is open.

This is a stronger experience than a small corner box. It can support strict opt-in regions. It can also increase bounce rate if the message is unclear or Decline is hard to find.

The controls are on the **Layout** tab, in the **Enforced consent (modals)** card.

||| **New Banner.** For stores on the new banner (**Cookie banner** shows the Layout, Content, Style, and Advanced tabs). On the Legacy Banner, see [How to switch to the new banner or switch back to the previous version](/en/article/how-to-switch-to-the-new-banner-or-switch-back-to-the-previous-version-x1xdn9/).

### Before you start

* Set **All settings > Consent model & regions** to the consent model you need (for EU, usually **Strict opt-in** or **Auto Pilot**).
* Keep **Accept** and **Decline** visible if you use Google tags. See [How to create a banner that meets Google’s banner requirements (New Version)](/en/article/how-to-create-a-banner-that-meets-googles-banner-requirements-new-version-1fjdi0q/).

### Enable enforced consent

1. Open **Shopify Admin > Apps > Pandectes GDPR Compliance**.
2. Go to **Cookie banner**.
3. Open **Layout** and scroll to the **Enforced consent (modals)** card.
4. Select **Enforced consent (modals)**.
5. Optional: select **Lock background scroll** (available once modals are on).
6. Save.

![Enforced consent (modals) card with Lock background scroll on the Layout tab](https://images.pandect.es/knowledge-base/how-to-use-enforced-consent-modals-on-the-new-banner-2.png =900xauto)

### Close actions that are limited

On **Advanced > Close banner > Alternative methods**, some dismiss methods turn off while modals or scroll lock are on: **Click outside the window**, **Window scroll over N pixels**, and **Timeout** are not applicable with a background overlay, and **Escape key press** is enabled automatically.

If **Implied consent** is also on, only remaining close methods can record implied allow or deny. Configure implied consent in the **Implied consent** card on the same Advanced tab.

### Verify

1. Preview on desktop and mobile.
2. Confirm you cannot click the product page through the overlay.
3. With scroll lock on, confirm the page does not scroll behind the dialog.
4. Accept and Decline both close the modal and record consent as expected.

### Related articles

* [Advanced Banner Settings (New Version)](/en/article/advanced-banner-settings-new-version-o0prb3/)
* [Consent Dialogs (New Version)](/en/article/consent-dialogs-new-version-1js7hm1/)
* [How to set Auto Pilot or a custom consent model per region (New Version)](/en/article/how-to-set-auto-pilot-or-a-custom-consent-model-per-region-new-version-1o9pxs1/)