Blog · Gutenberg

Opinion Box block for WordPress

Editorial 'My Take' opinion callout with author attribution, badge, and signed commentary.

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

Editorial 'My Take' opinion callout with author attribution, badge, and signed commentary.

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

Behavior controls: “Style — Style” options: Featured (card with background), Inline (left accent bar), Quote (large quote mark).

Where to find it

Gutenberg inserter → Blog → search “Opinion Box” (block name `blockenberg/opinion-box` in block.json). Style it in the sidebar after insert.

How to use Opinion Box block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Opinion Box”, insert it. Category: Blog.
  3. Configure inspector controls that exist on this block. Open Badge. Set “Show Badge”, “Badge Text”, “Show Avatar”, “Author Name”.
  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
Show BadgeOn/off toggle in the inspector. On by default. Saved as `showBadge`.
Badge TextText field in the inspector. block.json default: My Take. Saved as `badgeText`.
Show AvatarOn/off toggle in the inspector. On by default. Saved as `showAvatar`.
Author NameText field in the inspector. Saved as `authorName`.
Author Title / RoleText field in the inspector. Saved as `authorTitle`.
Style — StyleSelect control; the chosen value is saved on the block. Options: Featured (card with background); Inline (left accent bar); Quote (large quote mark). block.json default: featured. Saved as `style`.
Border RadiusNumeric range control in the inspector. Range 0–24. block.json default: 10. Saved as `borderRadius`.
Padding Top (×8px)Numeric range control in the inspector. Range 0–10. block.json default: 4. Saved as `paddingTop`.
Padding Bottom (×8px)Numeric range control in the inspector. Range 0–10. block.json default: 4. Saved as `paddingBottom`.
Colors — BackgroundColor control in the inspector. block.json default: #fefce8. Saved as `bgColor`.
Colors — BorderColor control in the inspector. block.json default: #fde047. Saved as `borderColor`.
AccentColor control in the inspector. block.json default: #ca8a04. Saved as `accentColor`.
Badge BGColor control in the inspector. block.json default: #ca8a04. Saved as `badgeBg`.
Badge TextColor control in the inspector. block.json default: #ffffff. Saved as `badgeColor`.
Opinion TextColor control in the inspector. block.json default: #1c1917. Saved as `textColor`.
Author NameColor control in the inspector. block.json default: #57534e. Saved as `authorColor`.
Author TitleColor control in the inspector. block.json default: #78716c. Saved as `titleColor`.
Avatar BGColor control in the inspector. block.json default: #d97706. Saved as `avatarBg`.
Avatar InitialsColor control in the inspector. block.json default: #ffffff. Saved as `avatarColor`.
Quote MarkColor control in the inspector. block.json default: #fde047. Saved as `quoteMarkColor`.

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

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Opinion Box”. It sits under Blog. After insert, open Badge and set “Show Badge”, “Badge Text”, “Show Avatar”, “Author Name”.

What makes Opinion Box different from other Blockenberg blocks?

Editorial 'My Take' opinion callout with author attribution, badge, and signed commentary. Inspector labels on this block include “Show Badge”, “Badge Text”, “Show Avatar”, “Author Name”.

Is the Opinion Box Gutenberg block free?

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

Can I style Opinion Box 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: Badge, Author).

Related blog blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Opinion Box from the Gutenberg inserter.

Get Blockenberg