Marketing · Gutenberg

Affiliate Disclosure block for WordPress

Styled FTC-compliant affiliate link disclosure notice for articles and reviews. Distinct from Affiliate Review Box — this is the small legal notice, not a full product review.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Styled FTC-compliant affiliate link disclosure notice for articles and reviews. Distinct from Affiliate Review Box — this is the small legal notice, not a full product review.

Inspector panels on this block: Content. Those titles come from index.js, not from a shared template.

Behavior controls: “Visual Style” options: Banner (top accent border), Left Bar (left accent), Box (solid border), Minimal (no background).

Where to find it

Gutenberg inserter → Marketing → search “Affiliate Disclosure” (block name `blockenberg/affiliate-disclosure` in block.json). Style it in the sidebar after insert.

How to use Affiliate Disclosure block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Affiliate Disclosure”, insert it. Category: Marketing.
  3. Configure inspector controls that exist on this block. Open Content. Set “Icon (emoji)”, “Show Icon”, “Label (bold prefix)”, “Show Label”.
  4. Check the published page. The view script reads HTML data attributes: data-opts, data-rendered. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Icon (emoji)Text field in the inspector. block.json default: 🔗. Saved as `icon`.
Show IconOn/off toggle in the inspector. On by default. Saved as `showIcon`.
Label (bold prefix)Text field in the inspector. block.json default: Affiliate Disclosure. Saved as `label`.
Show LabelOn/off toggle in the inspector. On by default. Saved as `showLabel`.
CollapsibleOn/off toggle in the inspector. Off by default. Saved as `collapsible`.
Show Policy LinkOn/off toggle in the inspector. Off by default. Saved as `showLink`.
Link TextText field in the inspector. block.json default: Read our full affiliate policy. Saved as `linkText`.
Link URLText field in the inspector. Saved as `linkUrl`.
Visual StyleSelect control; the chosen value is saved on the block. Options: Banner (top accent border); Left Bar (left accent); Box (solid border); Minimal (no background). block.json default: banner. Saved as `style`.
Border RadiusNumeric range control in the inspector. Range 0–20. block.json default: 8. Saved as `borderRadius`.
Typography — TextShared Blockenberg typography popover (family, size, weight, spacing). Saved as `textTypo`.
Icon Size (px)Numeric range control in the inspector. Range 12–32. block.json default: 18. Saved as `iconFontSize`.
Colors — BackgroundColor control in the inspector. block.json default: #fffbeb. Saved as `bgColor`.
Colors — BorderColor control in the inspector. block.json default: #fcd34d. Saved as `borderColor`.
Accent (top/left bar)Color control in the inspector. block.json default: #d97706. Saved as `accentColor`.
Colors — TextColor control in the inspector. block.json default: #78350f. Saved as `textColor`.
LabelColor control in the inspector. block.json default: #92400e. Saved as `labelColor`.
LinkColor control in the inspector. block.json default: #d97706. Saved as `linkColor`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Affiliate Disclosure block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Affiliate Disclosure”. It sits under Marketing. After insert, open Content and set “Icon (emoji)”, “Show Icon”, “Label (bold prefix)”, “Show Label”.

What makes Affiliate Disclosure different from other Blockenberg blocks?

Styled FTC-compliant affiliate link disclosure notice for articles and reviews. Distinct from Affiliate Review Box — this is the small legal notice, not a full product review. Inspector labels on this block include “Icon (emoji)”, “Show Icon”, “Label (bold prefix)”, “Show Label”.

Is the Affiliate Disclosure Gutenberg block free?

Yes. Affiliate Disclosure ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Affiliate Disclosure to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Content).

Related marketing blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Affiliate Disclosure from the Gutenberg inserter.

Get Blockenberg