Blog · Gutenberg
Tutorial Card block for WordPress
A structured tutorial block with steps, prerequisites, materials, learning outcomes, and progress tracking.
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
A structured tutorial block with steps, prerequisites, materials, learning outcomes, and progress tracking.
Inspector panels on this block: Tutorial Info, Learning Outcomes, Prerequisites, Materials, Steps, Header & Structure Colors, Step Colors, List Item Colors. Those titles come from index.js, not from a shared template.
Behavior controls: “Difficulty” options: 🟢 Beginner, 🟡 Intermediate, 🔴 Advanced.
Where to find it
Gutenberg inserter → Blog → search “Tutorial Card” (block name `blockenberg/tutorial-card` in block.json). Style it in the sidebar after insert.
How to use Tutorial Card block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Tutorial Card”, insert it. Category: Blog.
- Configure inspector controls that exist on this block. Open Tutorial Info. Set “Tutorial Info — Title”, “Subtitle”, “Author”, “Duration”.
- 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 |
|---|---|
| Tutorial Info — Title | Text field in the inspector. block.json default: Getting Started with React Hooks. Saved as `tutorialTitle`. |
| Subtitle | Text field in the inspector. block.json default: A hands-on guide for intermediate developers. Saved as `subtitle`. |
| Author | Text field in the inspector. block.json default: Alex Johnson. Saved as `author`. |
| Duration | Text field in the inspector. block.json default: 45 minutes. Saved as `duration`. |
| Difficulty | Select control; the chosen value is saved on the block. Options: 🟢 Beginner; 🟡 Intermediate; 🔴 Advanced. block.json default: intermediate. Saved as `difficulty`. |
| Show Author | On/off toggle in the inspector. On by default. Saved as `showAuthor`. |
| Show Duration | On/off toggle in the inspector. On by default. Saved as `showDuration`. |
| Show Progress | On/off toggle in the inspector. Off by default. Saved as `showProgress`. |
| Completion (%) | Numeric range control in the inspector. Range 0–100. block.json default: 0. Saved as `completionRate`. |
| Show Outcomes | On/off toggle in the inspector. On by default. Saved as `showOutcomes`. |
| Section Label | Text field in the inspector. block.json default: What you'll learn. Saved as `outcomesLabel`. |
| Show Prerequisites | On/off toggle in the inspector. On by default. Saved as `showPrerequisites`. |
| Section Label (Prerequisites Label) | Text field in the inspector. block.json default: Prerequisites. Saved as `prerequisitesLabel`. |
| Show Materials | On/off toggle in the inspector. On by default. Saved as `showMaterials`. |
| Section Label (Materials Label) | Text field in the inspector. block.json default: What you'll need. Saved as `materialsLabel`. |
| Show Steps | On/off toggle in the inspector. On by default. Saved as `showSteps`. |
| Show Durations | On/off toggle in the inspector. On by default. Saved as `showStepDurations`. |
| Show Tips | On/off toggle in the inspector. On by default. Saved as `showTips`. |
| Section Label (Steps Label) | Text field in the inspector. block.json default: Steps. Saved as `stepsLabel`. |
| Steps — Title | Text field in the inspector. Saved as `steps`. |
| Steps — Content | Multiline text field in the inspector. Saved as `steps`. |
| Duration (Steps) | Text field in the inspector. Saved as `steps`. |
| Tip (optional) | Text field in the inspector. Saved as `steps`. |
| Badge Size (px) | Numeric range control in the inspector. Range 10–24. block.json default: 11. Saved as `subtitleSize`. |
| Author Size (px) | Numeric range control in the inspector. Range 8–20. block.json default: 12. Saved as `authorSize`. |
| Border Radius (px) | Numeric range control in the inspector. Range 0–24. block.json default: 12. Saved as `borderRadius`. |
| Block Background | Color control in the inspector. block.json default: #ffffff. Saved as `bgColor`. |
| Header & Structure Colors — Border | Color control in the inspector. block.json default: #e5e7eb. Saved as `borderColor`. |
| Header Background | Color control in the inspector. block.json default: #0f172a. Saved as `headerBg`. |
| Header Text | Color control in the inspector. block.json default: #ffffff. Saved as `headerColor`. |
| Accent Color | Color control in the inspector. block.json default: #3b82f6. Saved as `accentColor`. |
| Progress Fill | Color control in the inspector. block.json default: #3b82f6. Saved as `progressFill`. |
| Step Number BG | Color control in the inspector. block.json default: #3b82f6. Saved as `stepNumberBg`. |
| Step Number Text | Color control in the inspector. block.json default: #ffffff. Saved as `stepNumberColor`. |
| Step Divider | Color control in the inspector. block.json default: #e5e7eb. Saved as `stepBorderColor`. |
| Tip Background | Color control in the inspector. block.json default: #fffbeb. Saved as `stepTipBg`. |
| Tip Text | Color control in the inspector. block.json default: #92400e. Saved as `stepTipColor`. |
| Tip Border | Color control in the inspector. block.json default: #fcd34d. Saved as `stepTipBorderColor`. |
| Prerequisite BG | Color control in the inspector. block.json default: #f1f5f9. Saved as `prerequisiteBg`. |
| Prerequisite Text | Color control in the inspector. block.json default: #334155. Saved as `prerequisiteColor`. |
| Material BG | Color control in the inspector. block.json default: #f0f9ff. Saved as `materialBg`. |
| Material Text | Color control in the inspector. block.json default: #0c4a6e. Saved as `materialColor`. |
| Outcome BG | Color control in the inspector. block.json default: #f0fdf4. Saved as `outcomeBg`. |
| Outcome Text | Color control in the inspector. block.json default: #14532d. Saved as `outcomeColor`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-opts, data-rendered.
When this is the right block
- A structured tutorial block with steps, prerequisites, materials, learning outcomes, and progress tracking — that is the job of Tutorial Card, not a generic content block.
- Use it when you need the editor control labeled “Tutorial Info — Title”, which exists on this block’s inspector.
- It matches pages about tutorial, guide, steps.
- Inserter grouping: posts, magazines, and editorial WordPress 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 Tutorial Card block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Tutorial Card”. It sits under Blog. After insert, open Tutorial Info and set “Tutorial Info — Title”, “Subtitle”, “Author”, “Duration”.
What makes Tutorial Card different from other Blockenberg blocks?
A structured tutorial block with steps, prerequisites, materials, learning outcomes, and progress tracking. Inspector labels on this block include “Tutorial Info — Title”, “Subtitle”, “Author”, “Duration”.
Is the Tutorial Card Gutenberg block free?
Yes. Tutorial Card ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Tutorial Card 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: Tutorial Info, Learning Outcomes, Prerequisites, Materials).
Related blog blocks
HowTo Schema
Step-by-step How-To guide with automatic Schema.org HowTo JSON-LD structured data for Google rich results. Includes supplies, tools, total time, cost estimate, and numbered steps with images.
Lesson Objectives
"What You'll Learn" educational objectives box with bullet points, level badge, and estimated read time.
Course Lesson
A complete course lesson with objectives, content sections, resources, and navigation.
Learning Path
Display a structured learning path with steps, skill tags, durations and type indicators.
Knowledge Base Article
Full knowledge base / help center article with category, difficulty, table of contents, sections, and related articles.
Chapter Navigation
Multi-part guide and series navigation with progress, prev/next, and chapter list.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Tutorial Card from the Gutenberg inserter.