Marketing · Gutenberg

Affiliate Section block for WordPress

Affiliate/referral program landing section with commission highlight, how-it-works steps, benefits list, and stats.

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

Affiliate/referral program landing section with commission highlight, how-it-works steps, benefits list, and stats.

Inspector panels on this block: Layout, Commission Badge, Benefits & Stats, CTA Buttons. Those titles come from index.js, not from a shared template.

Behavior controls: “Layout” options: Split (Commission + Steps), Centered, Steps Focus.

Where to find it

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

How to use Affiliate Section 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 Section”, insert it. Category: Marketing.
  3. Configure inspector controls that exist on this block. Open Layout. Set “Max Width (px)”, “Padding Top (px)”, “Padding Bottom (px)”, “Commission Value”.
  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
LayoutSelect control; the chosen value is saved on the block. Options: Split (Commission + Steps); Centered; Steps Focus. block.json default: split. Saved as `layout`.
Max Width (px)Numeric range control in the inspector. Range 600–1400. block.json default: 1100. Saved as `maxWidth`.
Padding Top (px)Numeric range control in the inspector. Range 0–200. block.json default: 80. Saved as `paddingTop`.
Padding Bottom (px)Numeric range control in the inspector. Range 0–200. block.json default: 80. Saved as `paddingBottom`.
Commission ValueText field in the inspector. block.json default: 30%. Saved as `commission`.
Commission LabelText field in the inspector. block.json default: recurring commission. Saved as `commissionLabel`.
Commission NoteText field in the inspector. block.json default: on every sale, every month, for life. Saved as `commissionNote`.
Show Benefits ListOn/off toggle in the inspector. On by default. Saved as `showBenefits`.
Show StatsOn/off toggle in the inspector. On by default. Saved as `showStats`.
Primary CTA LabelText field in the inspector. block.json default: Join the Program. Saved as `ctaLabel`.
Primary CTA URLText field in the inspector. block.json default: #. Saved as `ctaUrl`.
Show Secondary CTAOn/off toggle in the inspector. On by default. Saved as `showSecondary`.
Secondary CTA LabelText field in the inspector. block.json default: Learn More. Saved as `ctaSecondaryLabel`.
Secondary CTA URLText field in the inspector. block.json default: #. Saved as `ctaSecondaryUrl`.
Eyebrow TypographyShared Blockenberg typography popover (family, size, weight, spacing). Saved as `eyebrowTypo`.
Heading TypographyShared Blockenberg typography popover (family, size, weight, spacing). Saved as `headingTypo`.
Subtext TypographyShared Blockenberg typography popover (family, size, weight, spacing). Saved as `subtextTypo`.
Colors — BackgroundColor control in the inspector. block.json default: #0f172a. Saved as `bgColor`.
AccentColor control in the inspector. block.json default: #6366f1. Saved as `accentColor`.
Commission Badge BGColor control in the inspector. block.json default: #6366f1. Saved as `commissionBg`.
Commission Badge TextColor control in the inspector. block.json default: #ffffff. Saved as `commissionColor`.
HeadingColor control in the inspector. block.json default: #ffffff. Saved as `headingColor`.
SubtextColor control in the inspector. block.json default: #94a3b8. Saved as `subColor`.
EyebrowColor control in the inspector. block.json default: #a5b4fc. Saved as `eyebrowColor`.
Step Card BGColor control in the inspector. block.json default: #1e293b. Saved as `stepCardBg`.
Stat NumberColor control in the inspector. block.json default: #6366f1. Saved as `statNumColor`.
CTA BGColor control in the inspector. block.json default: #6366f1. Saved as `ctaBg`.
CTA TextColor control in the inspector. block.json default: #ffffff. Saved as `ctaColor`.

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 Section block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Affiliate Section”. It sits under Marketing. After insert, open Layout and set “Max Width (px)”, “Padding Top (px)”, “Padding Bottom (px)”, “Commission Value”.

What makes Affiliate Section different from other Blockenberg blocks?

Affiliate/referral program landing section with commission highlight, how-it-works steps, benefits list, and stats. Inspector labels on this block include “Max Width (px)”, “Padding Top (px)”, “Padding Bottom (px)”, “Commission Value”.

Is the Affiliate Section Gutenberg block free?

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

Can I style Affiliate Section 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: Layout, Commission Badge, Benefits & Stats, CTA Buttons).

Related marketing blocks

Get Blockenberg

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

Get Blockenberg