2.0 Beta

Smootify 2.0 is in public beta. Your 1.x store keeps working. Move when you want.

What changed

smootify-consent [data-action]

Consent buttons (accept all, decline all, save choices, open preferences, close).

v2.0 beta
Open .md
On this page
  1. At a glance
  2. Where it can go
  3. What it requires
  4. Attributes on the element
  5. Attributes inside it

At a glance

data-action="accept"

Accept everything

Answer
Every category accepted.
Banner
Closes.
data-action="decline"

Decline everything

Answer
Every category declined.
Banner
Closes.
data-action="preferences"

Choose by category

Answer
None yet: the visitor answers in the panel (step 2).
Banner
Shows the preferences panel.
data-action="close"

Close without answering

Answer
None. Nothing that needs consent loads.
Banner
Hidden for this page. It shows again on the next page.

More in the guide.

smootify-consent [data-action] is a template, read by smootify-consent: it is never defined on its own.

Where it can go

What it requires

Nothing beyond Smootify: it works on every plan.

Attributes on the element

  • It reads data-action.

Attributes inside it

GroupAttribute nameValues
Cookie consentdata-action11
Cookie banner (condition)consent-condition1

    ↑ ↓ to moveEnter to openEsc to close