Blog · Gutenberg
Learning Path block for WordPress
Display a structured learning path with steps, skill tags, durations and type indicators.
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
Display a structured learning path with steps, skill tags, durations and type indicators.
Inspector panels on this block: Path Settings, Steps, Layout Colors, Step Type Colors. Those titles come from index.js, not from a shared template.
Behavior controls: “Difficulty” options: Beginner, Intermediate, Advanced; “Type” options: 📖 Lesson, 🔨 Project, ✏️ Quiz, 📄 Reading, 🎬 Video.
Where to find it
Gutenberg inserter → Blog → search “Learning Path” (block name `blockenberg/learning-path` in block.json). Style it in the sidebar after insert.
How to use Learning Path block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Learning Path”, insert it. Category: Blog.
- Configure inspector controls that exist on this block. Open Path Settings. Set “Path Title”, “Description”, “Show Description”, “Total 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 |
|---|---|
| Path Title | Text field in the inspector. block.json default: Full-Stack Web Development Path. Saved as `pathTitle`. |
| Description | Multiline text field in the inspector. block.json default: A structured roadmap to become a proficient full-stack developer — from fundamentals to deployment.. Saved as `description`. |
| Show Description | On/off toggle in the inspector. On by default. Saved as `showDescription`. |
| Total Duration | Text field in the inspector. block.json default: 12 weeks. Saved as `totalDuration`. |
| Difficulty | Select control; the chosen value is saved on the block. Options: Beginner; Intermediate; Advanced. block.json default: intermediate. Saved as `difficulty`. |
| Show Skills | On/off toggle in the inspector. On by default. Saved as `showSkills`. |
| Show Duration | On/off toggle in the inspector. On by default. Saved as `showDuration`. |
| Show Step Numbers | On/off toggle in the inspector. On by default. Saved as `showStepNumbers`. |
| Steps — Title | Text field in the inspector. Saved as `steps`. |
| Description (Steps) | Multiline text field in the inspector. Saved as `steps`. |
| Type | Select control; the chosen value is saved on the block. Options: 📖 Lesson; 🔨 Project; ✏️ Quiz; 📄 Reading; 🎬 Video. Saved as `steps`. |
| Duration | Text field in the inspector. Saved as `steps`. |
| Skills (comma-separated) | Text field in the inspector. Saved as `steps`. |
| Base Font Size | Numeric range control in the inspector. Range 10–22. block.json default: 14. Saved as `fontSize`. |
| Line Height (%) | Numeric range control in the inspector. Range 120–220. block.json default: 160. Saved as `lineHeight`. |
| Border Radius | Numeric range control in the inspector. Range 0–32. block.json default: 12. Saved as `borderRadius`. |
| Layout Colors — Background | Color control in the inspector. block.json default: #ffffff. Saved as `bgColor`. |
| Layout Colors — Border | Color control in the inspector. block.json default: #e5e7eb. Saved as `borderColor`. |
| Layout Colors — Title | Color control in the inspector. block.json default: #111827. Saved as `titleColor`. |
| Description | Color control in the inspector. block.json default: #6b7280. Saved as `descColor`. |
| Meta Bar BG | Color control in the inspector. block.json default: #f8fafc. Saved as `metaBg`. |
| Meta Bar Border | Color control in the inspector. block.json default: #e2e8f0. Saved as `metaBorderColor`. |
| Difficulty BG | Color control in the inspector. block.json default: #ede9fe. Saved as `difficultyBg`. |
| Difficulty Text | Color control in the inspector. block.json default: #5b21b6. Saved as `difficultyColor`. |
| Step Card BG | Color control in the inspector. block.json default: #ffffff. Saved as `stepBg`. |
| Step Card Border | Color control in the inspector. block.json default: #e5e7eb. Saved as `stepBorderColor`. |
| Step Title | Color control in the inspector. block.json default: #1f2937. Saved as `stepTitleColor`. |
| Step Description | Color control in the inspector. block.json default: #6b7280. Saved as `stepDescColor`. |
| Step Number BG | Color control in the inspector. block.json default: #0f172a. Saved as `stepNumBg`. |
| Step Number Text | Color control in the inspector. block.json default: #ffffff. Saved as `stepNumColor`. |
| Connector Line | Color control in the inspector. block.json default: #e5e7eb. Saved as `connectorColor`. |
| Duration Text | Color control in the inspector. block.json default: #6b7280. Saved as `durationColor`. |
| Skill Tag BG | Color control in the inspector. block.json default: #f1f5f9. Saved as `skillBg`. |
| Skill Tag Text | Color control in the inspector. block.json default: #475569. Saved as `skillColor`. |
| 📖 Lesson | Color control in the inspector. block.json default: #2563eb. Saved as `lessonColor`. |
| 🔨 Project | Color control in the inspector. block.json default: #d97706. Saved as `projectColor`. |
| ✏️ Quiz | Color control in the inspector. block.json default: #7c3aed. Saved as `quizColor`. |
| 📄 Reading | Color control in the inspector. block.json default: #059669. Saved as `readingColor`. |
| 🎬 Video | Color control in the inspector. block.json default: #dc2626. Saved as `videoColor`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-opts, data-rendered.
When this is the right block
- Display a structured learning path with steps, skill tags, durations and type indicators — that is the job of Learning Path, not a generic content block.
- Use it when you need the editor control labeled “Path Title”, which exists on this block’s inspector.
- It matches pages about learning, path, course.
- 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 Learning Path block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Learning Path”. It sits under Blog. After insert, open Path Settings and set “Path Title”, “Description”, “Show Description”, “Total Duration”.
What makes Learning Path different from other Blockenberg blocks?
Display a structured learning path with steps, skill tags, durations and type indicators. Inspector labels on this block include “Path Title”, “Description”, “Show Description”, “Total Duration”.
Is the Learning Path Gutenberg block free?
Yes. Learning Path ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Learning Path 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: Path Settings, Steps, Layout Colors, Step Type Colors).
Related blog blocks
Course Lesson
A complete course lesson with objectives, content sections, resources, and navigation.
Tutorial Card
A structured tutorial block with steps, prerequisites, materials, learning outcomes, and progress tracking.
Course Curriculum
Expandable course curriculum / syllabus with sections and lessons. Each lesson shows duration, type, and free/locked status. Perfect for online courses and training pages.
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.
Study Notes
Cornell-style structured study notes with cue column, notes column, summary, and key terms.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Learning Path from the Gutenberg inserter.