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.

Get Blockenberg

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

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Tutorial Card”, insert it. Category: Blog.
  3. Configure inspector controls that exist on this block. Open Tutorial Info. Set “Tutorial Info — Title”, “Subtitle”, “Author”, “Duration”.
  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
Tutorial Info — TitleText field in the inspector. block.json default: Getting Started with React Hooks. Saved as `tutorialTitle`.
SubtitleText field in the inspector. block.json default: A hands-on guide for intermediate developers. Saved as `subtitle`.
AuthorText field in the inspector. block.json default: Alex Johnson. Saved as `author`.
DurationText field in the inspector. block.json default: 45 minutes. Saved as `duration`.
DifficultySelect control; the chosen value is saved on the block. Options: 🟢 Beginner; 🟡 Intermediate; 🔴 Advanced. block.json default: intermediate. Saved as `difficulty`.
Show AuthorOn/off toggle in the inspector. On by default. Saved as `showAuthor`.
Show DurationOn/off toggle in the inspector. On by default. Saved as `showDuration`.
Show ProgressOn/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 OutcomesOn/off toggle in the inspector. On by default. Saved as `showOutcomes`.
Section LabelText field in the inspector. block.json default: What you'll learn. Saved as `outcomesLabel`.
Show PrerequisitesOn/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 MaterialsOn/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 StepsOn/off toggle in the inspector. On by default. Saved as `showSteps`.
Show DurationsOn/off toggle in the inspector. On by default. Saved as `showStepDurations`.
Show TipsOn/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 — TitleText field in the inspector. Saved as `steps`.
Steps — ContentMultiline 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 BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `bgColor`.
Header & Structure Colors — BorderColor control in the inspector. block.json default: #e5e7eb. Saved as `borderColor`.
Header BackgroundColor control in the inspector. block.json default: #0f172a. Saved as `headerBg`.
Header TextColor control in the inspector. block.json default: #ffffff. Saved as `headerColor`.
Accent ColorColor control in the inspector. block.json default: #3b82f6. Saved as `accentColor`.
Progress FillColor control in the inspector. block.json default: #3b82f6. Saved as `progressFill`.
Step Number BGColor control in the inspector. block.json default: #3b82f6. Saved as `stepNumberBg`.
Step Number TextColor control in the inspector. block.json default: #ffffff. Saved as `stepNumberColor`.
Step DividerColor control in the inspector. block.json default: #e5e7eb. Saved as `stepBorderColor`.
Tip BackgroundColor control in the inspector. block.json default: #fffbeb. Saved as `stepTipBg`.
Tip TextColor control in the inspector. block.json default: #92400e. Saved as `stepTipColor`.
Tip BorderColor control in the inspector. block.json default: #fcd34d. Saved as `stepTipBorderColor`.
Prerequisite BGColor control in the inspector. block.json default: #f1f5f9. Saved as `prerequisiteBg`.
Prerequisite TextColor control in the inspector. block.json default: #334155. Saved as `prerequisiteColor`.
Material BGColor control in the inspector. block.json default: #f0f9ff. Saved as `materialBg`.
Material TextColor control in the inspector. block.json default: #0c4a6e. Saved as `materialColor`.
Outcome BGColor control in the inspector. block.json default: #f0fdf4. Saved as `outcomeBg`.
Outcome TextColor control in the inspector. block.json default: #14532d. Saved as `outcomeColor`.

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 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

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Tutorial Card from the Gutenberg inserter.

Get Blockenberg