Business · Gutenberg

SWOT Analysis block for WordPress

2×2 SWOT matrix with per-quadrant item lists, colors, and icons.

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

2×2 SWOT matrix with per-quadrant item lists, colors, and icons.

Inspector panels on this block: Title, Quadrant Labels, Display, Spacing & Shape, Quadrant Colors, General Colors. Those titles come from index.js, not from a shared template.

Behavior controls: “List style” options: Bullet •, Number 1., Check ✓, Dash —, None.

Where to find it

Gutenberg inserter → Business → search “SWOT Analysis” (block name `blockenberg/swot-analysis` in block.json). Style it in the sidebar after insert.

How to use SWOT Analysis block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “SWOT Analysis”, insert it. Category: Business.
  3. Configure inspector controls that exist on this block. Open Title. Set “Show block title”, “Title text”, “Q' + (i + 1) + ' label”, “Icon / Emoji”.
  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 block titleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
Title textText field in the inspector. block.json default: SWOT Analysis. Saved as `blockTitle`.
Q' + (i + 1) + ' labelText field in the inspector. Saved as `quadrants`.
Icon / EmojiText field in the inspector. Saved as `quadrants`.
Show icons / emojisOn/off toggle in the inspector. On by default. Saved as `showIcons`.
List styleSelect control; the chosen value is saved on the block. Options: Bullet •; Number 1.; Check ✓; Dash —; None. block.json default: bullet. Saved as `listStyle`.
Enable shadowOn/off toggle in the inspector. On by default. Saved as `enableShadow`.
Border radiusNumeric range control in the inspector. Range 0–32. block.json default: 12. Saved as `borderRadius`.
Gap between quadrantsNumeric range control in the inspector. Range 0–40. block.json default: 16. Saved as `gap`.
Header padding (vertical)Numeric range control in the inspector. Range 8–40. block.json default: 16. Saved as `headerPaddingV`.
Header padding (horizontal)Numeric range control in the inspector. Range 8–48. block.json default: 20. Saved as `headerPaddingH`.
Body padding (vertical)Numeric range control in the inspector. Range 8–40. block.json default: 16. Saved as `bodyPaddingV`.
Body padding (horizontal)Numeric range control in the inspector. Range 8–48. block.json default: 20. Saved as `bodyPaddingH`.
StrengthsColor control in the inspector. block.json default: #22c55e. Saved as `strengthsColor`.
WeaknessesColor control in the inspector. block.json default: #ef4444. Saved as `weaknessesColor`.
OpportunitiesColor control in the inspector. block.json default: #3b82f6. Saved as `opportunitiesColor`.
ThreatsColor control in the inspector. block.json default: #f59e0b. Saved as `threatsColor`.
Card backgroundColor control in the inspector. block.json default: #ffffff. Saved as `bgColor`.
General Colors — BorderColor control in the inspector. block.json default: #e2e8f0. Saved as `borderColor`.
Block titleColor control in the inspector. block.json default: #1e293b. Saved as `titleColor`.
Item textColor control in the inspector. block.json default: #374151. Saved as `textColor`.
Header textColor control in the inspector. block.json default: #ffffff. Saved as `headerTextColor`.

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

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “SWOT Analysis”. It sits under Business. After insert, open Title and set “Show block title”, “Title text”, “Q' + (i + 1) + ' label”, “Icon / Emoji”.

What makes SWOT Analysis different from other Blockenberg blocks?

2×2 SWOT matrix with per-quadrant item lists, colors, and icons. Inspector labels on this block include “Show block title”, “Title text”, “Q' + (i + 1) + ' label”, “Icon / Emoji”.

Is the SWOT Analysis Gutenberg block free?

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

Can I style SWOT Analysis 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: Title, Quadrant Labels, Display, Spacing & Shape).

Related business blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert SWOT Analysis from the Gutenberg inserter.

Get Blockenberg