Cookie Banner
The banner is the consent surface your visitors see. It’s where they Accept All, Decline All, or open a Preferences modal to choose exactly which categories of cookies they allow. You can shape almost every part of it from the admin without touching code.
Layouts and placement
CookieRay ships with two layouts:
- Card — a compact, contained panel.
- Bar — a full-width strip.
Each layout can be positioned in one of nine placement positions, so you can put the banner wherever it fits your design best (corners, edges, or centered).
A live preview in the admin updates as you edit, so you can see your changes before publishing them to the front end.
Visitor choices
From the banner, visitors can:
- Accept All — grant consent to every category.
- Decline All — refuse all non-essential categories.
- Preferences — open a modal to pick individual categories:
- Necessary
- Analytical
- Functional
- Marketing
The Necessary category covers cookies required for the site to function. The other three are opt-in choices the visitor controls.
Customization
Everything below is editable without code, under the Banner Design admin page:
- Banner text and messaging
- Colors
- Buttons
- Fonts
Because CookieRay follows the WordPress text direction, the banner is RTL aware and renders correctly for right-to-left languages automatically.
Enabling the banner
The banner is off by default. The setting banner_enabled is false until you turn it on.
Important: No banner will appear on your site until you enable it. After installing CookieRay, go to Banner Design, configure the look you want, and switch the banner on.
Recommended setup flow
- Open the Banner Design admin page.
- Choose a layout (card or bar) and a placement position.
- Adjust text, colors, buttons, and fonts using the live preview.
- Confirm the Preferences modal lists the categories you want to offer.
- Enable the banner so it appears to visitors.