Kodza

Cookie Consent

An honest cookie card: Reject weighs as much as Accept, Choose unfolds the categories, the choice is kept and a link brings the card back.

Overlays No dependencies cookiesconsentgdprbanner Added Oct 2026
/anim/cookie-consent/ Fullscreen

With your AI

Just ask.

Say it to your AI. It gets the exact code below, not its best guess, and knows where it goes.

Replace my WordPress cookie banner with Kodza Cookie Consent.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-cookie-consent.html
<section class="kodza-cookies" aria-label="Cookie consent" data-key="kodza-consent" hidden>
  <div class="kodza-cookies__main">
    <p class="kodza-cookies__title">Cookies, but honest.</p>
    <p class="kodza-cookies__text">Some keep the site working. With your OK, a few more tell us which components you copy. No ads, no selling, no cookie monster.</p>
  </div>
  <div class="kodza-cookies__details">
    <ul class="kodza-cookies__list">
      <li class="kodza-cookies__row"><span class="kodza-cookies__name">Necessary<small>Sign-in, preferences, this very choice.</small></span><span class="kodza-cookies__always">Always on</span></li>
      <li class="kodza-cookies__row"><span class="kodza-cookies__name">Analytics<small>Anonymous counts of what gets copied.</small></span><input class="kodza-cookies__switch" type="checkbox" role="switch" name="analytics" aria-label="Analytics"></li>
      <li class="kodza-cookies__row"><span class="kodza-cookies__name">Preferences<small>Remembers dark mode and your last search.</small></span><input class="kodza-cookies__switch" type="checkbox" role="switch" name="preferences" aria-label="Preferences"></li>
    </ul>
  </div>
  <div class="kodza-cookies__actions">
    <button class="kodza-cookies__more" type="button" aria-expanded="false"><span class="kodza-cookies__more-words"><span>Choose</span></span></button>
    <span class="kodza-cookies__buttons">
      <button class="kodza-cookies__button" type="button" data-choice="reject">Reject all</button>
      <button class="kodza-cookies__button kodza-cookies__button--ink" type="button" data-choice="accept">Accept all</button>
    </span>
  </div>
</section>

Checked

Checked before you paste.

Robots poked at it before you did. Every component goes through the same checks, and again each time it changes.

What ranLast run
Accessibilityaxe-core 4.10.2: the WCAG 2.1 A and AA rules, plus best practices. 0 issues
KeyboardThe Tab key gets there, and the focus ring shows when it does. Passed
Reduced motionTurn on reduced motion and what moved just appears. Nothing loops. Passed
Light and darkThe same checks on both themes, contrast included. Passed
WordPressPasted into Twenty Twenty-Five, Twenty Twenty-One, Astra, Blocksy, GeneratePress, Hello Elementor, Kadence and OceanWP. Nothing to flag. 8 / 8 themes
Robots checked this. A human with VoiceOver hasn't yet.
KeyboardPress them in the preview
On a switch
  • Turns the category on or offSpace
In the card, once unfolded
  • Folds the categories back, nothing savedEsc

More like this

More in Overlays