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.
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
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “SWOT Analysis”, insert it. Category: Business.
- Configure inspector controls that exist on this block. Open Title. Set “Show block title”, “Title text”, “Q' + (i + 1) + ' label”, “Icon / Emoji”.
- 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
| Control | What the code does |
|---|---|
| Show block title | On/off toggle in the inspector. On by default. Saved as `showTitle`. |
| Title text | Text field in the inspector. block.json default: SWOT Analysis. Saved as `blockTitle`. |
| Q' + (i + 1) + ' label | Text field in the inspector. Saved as `quadrants`. |
| Icon / Emoji | Text field in the inspector. Saved as `quadrants`. |
| Show icons / emojis | On/off toggle in the inspector. On by default. Saved as `showIcons`. |
| List style | Select control; the chosen value is saved on the block. Options: Bullet •; Number 1.; Check ✓; Dash —; None. block.json default: bullet. Saved as `listStyle`. |
| Enable shadow | On/off toggle in the inspector. On by default. Saved as `enableShadow`. |
| Border radius | Numeric range control in the inspector. Range 0–32. block.json default: 12. Saved as `borderRadius`. |
| Gap between quadrants | Numeric 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`. |
| Strengths | Color control in the inspector. block.json default: #22c55e. Saved as `strengthsColor`. |
| Weaknesses | Color control in the inspector. block.json default: #ef4444. Saved as `weaknessesColor`. |
| Opportunities | Color control in the inspector. block.json default: #3b82f6. Saved as `opportunitiesColor`. |
| Threats | Color control in the inspector. block.json default: #f59e0b. Saved as `threatsColor`. |
| Card background | Color control in the inspector. block.json default: #ffffff. Saved as `bgColor`. |
| General Colors — Border | Color control in the inspector. block.json default: #e2e8f0. Saved as `borderColor`. |
| Block title | Color control in the inspector. block.json default: #1e293b. Saved as `titleColor`. |
| Item text | Color control in the inspector. block.json default: #374151. Saved as `textColor`. |
| Header text | Color control in the inspector. block.json default: #ffffff. Saved as `headerTextColor`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-opts, data-rendered.
When this is the right block
- 2×2 SWOT matrix with per-quadrant item lists, colors, and icons — that is the job of SWOT Analysis, not a generic content block.
- Use it when you need the editor control labeled “Show block title”, which exists on this block’s inspector.
- It matches pages about swot, analysis, strengths.
- Inserter grouping: company, service, and operations pages.
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
Address Card
Business address card with contact details, opening hours, and optional map link.
Business Hours
Display business opening hours with current status indicator.
About Section
Ready-made About Us section with split image/video + text layout, optional company stats row, badge label, CTA buttons, and full background/color controls.
App Screenshot
SaaS/app product screenshot section with annotated callout points, device frame, heading, subtext, and CTA. Perfect for software landing pages.
Author Box
Display a blog author profile card with avatar, name, bio, role and social media links.
Author Profile
Extended author bio card with avatar, name, role, bio, stats, and social links.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert SWOT Analysis from the Gutenberg inserter.