GDPR Banner

Usage

Open Appearance β†’ Customize β†’ Scripts & Embeds β†’ GDPR Banner and toggle Enable when visitors must opt in before tracking runs. Customize Layout, Background, Reverse Print, and Shadow to match your footer or masthead.

Write the notice in Body (HTML allowed). Set Accept Text and optional Decline Text β€” if decline text is empty, only an accept button appears. Turn Show Privacy Policy Link on and edit Privacy Policy Link Text when you want a policy link beside the buttons.

When to use it

  • EU, UK, or other regions where cookie consent is required before analytics and ads load.
  • Any site using Analytics & Tracking IDs that should wait for explicit acceptance.
  • Replacing a third-party consent plugin with the built-in banner for simpler maintenance.

Tips

  • When enabled, tracking scripts from Analytics & Tracking stay off until the visitor accepts.
  • Corner is a compact bar; Centered draws more attention on first visit.
  • Pair accept/decline labels with clear body copy β€” visitors should know what they are agreeing to.
  • Test in a private window after publishing; accepted consent is stored in the browser.

Settings

GDPR Banner

Enable setting in the block editor sidebar
Enable

Enable the GDPR cookie notice. If you have entered any IDs in the Analytics & Tracking settings, this will disable the tracking scripts until the user accepts the cookie notice.

Layout setting in the block editor sidebar
LayoutAvailable when Enable is β€œUndefined”
  • Corner
  • Centered
Shadow setting in the block editor sidebar
ShadowAvailable when Enable is β€œUndefined”
Background setting in the block editor sidebar
BackgroundAvailable when Enable is β€œUndefined”
  • Whitedefault
  • Gray
  • Dark
  • Text
  • Primary
  • Secondary
  • Accent
  • Variant
  • Muted
Reverse Print setting in the block editor sidebar
Reverse PrintAvailable when Enable is β€œUndefined”
Body (HTML Allowed) setting in the block editor sidebar
Body (HTML Allowed)Available when Enable is β€œUndefined”
Show Privacy Policy Link setting in the block editor sidebar
Show Privacy Policy LinkAvailable when Enable is β€œUndefined”
Privacy Policy Link Text setting in the block editor sidebar
Privacy Policy Link TextAvailable when Enable is β€œUndefined”
Accept Text setting in the block editor sidebar
Accept TextAvailable when Enable is β€œUndefined”
Decline Text setting in the block editor sidebar
Decline TextAvailable when Enable is β€œUndefined”

If no text is entered, the decline button will not be shown.