Blog · Gutenberg
Lesson Objectives block for WordPress
"What You'll Learn" educational objectives box with bullet points, level badge, and estimated read time.
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
"What You'll Learn" educational objectives box with bullet points, level badge, and estimated read time.
Inspector panels on this block: Objectives, Header & Meta. Those titles come from index.js, not from a shared template.
Behavior controls: “Level” options: 🟢 Beginner, 🟡 Intermediate, 🔴 Advanced, 🔵 All Levels; “Style — Style” options: Card (bordered), Left Border, Top Border, Minimal; “Bullet Style” options: ✅ Checkmark, → Arrow, ● Circle, ★ Star, Custom.
Where to find it
Gutenberg inserter → Blog → search “Lesson Objectives” (block name `blockenberg/lesson-objectives` in block.json). Style it in the sidebar after insert.
How to use Lesson Objectives block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Lesson Objectives”, insert it. Category: Blog.
- Configure inspector controls that exist on this block. Open Objectives. Set “Show Icon”, “Show Level Badge”, “Level”, “Show Read Time”.
- 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 Icon | On/off toggle in the inspector. On by default. Saved as `showIcon`. |
| Show Level Badge | On/off toggle in the inspector. On by default. Saved as `showLevel`. |
| Level | Select control; the chosen value is saved on the block. Options: 🟢 Beginner; 🟡 Intermediate; 🔴 Advanced; 🔵 All Levels. block.json default: beginner. Saved as `level`. |
| Show Read Time | On/off toggle in the inspector. On by default. Saved as `showReadTime`. |
| Read Time | Text field in the inspector. block.json default: 12 min read. Saved as `readTime`. |
| Style — Style | Select control; the chosen value is saved on the block. Options: Card (bordered); Left Border; Top Border; Minimal. block.json default: card. Saved as `style`. |
| Bullet Style | Select control; the chosen value is saved on the block. Options: ✅ Checkmark; → Arrow; ● Circle; ★ Star; Custom. block.json default: check. Saved as `bulletStyle`. |
| Custom Bullet | Text field in the inspector. block.json default: ✓. Saved as `customBullet`. |
| Columns | Numeric range control in the inspector. Range 1–3. block.json default: 1. Saved as `columns`. |
| Border Radius | Numeric range control in the inspector. Range 0–20. block.json default: 10. Saved as `borderRadius`. |
| Padding Top | Numeric range control in the inspector. Range 0–120. block.json default: 0. Saved as `paddingTop`. |
| Padding Bottom | Numeric range control in the inspector. Range 0–120. block.json default: 0. Saved as `paddingBottom`. |
| Colors — Background | Color control in the inspector. block.json default: #f0fdf4. Saved as `bgColor`. |
| Colors — Border | Color control in the inspector. block.json default: #86efac. Saved as `borderColor`. |
| Accent | Color control in the inspector. block.json default: #16a34a. Saved as `accentColor`. |
| Heading | Color control in the inspector. block.json default: #14532d. Saved as `headingColor`. |
| Bullet BG | Color control in the inspector. block.json default: #dcfce7. Saved as `bulletBg`. |
| Bullet Icon | Color control in the inspector. block.json default: #16a34a. Saved as `bulletColor`. |
| Item Text | Color control in the inspector. block.json default: #166534. Saved as `textColor`. |
| Meta Text | Color control in the inspector. block.json default: #4b7a5a. Saved as `metaColor`. |
| Level Badge BG | Color control in the inspector. block.json default: #16a34a. Saved as `levelBg`. |
| Level Badge Text | Color control in the inspector. block.json default: #ffffff. Saved as `levelColor`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-opts, data-rendered.
When this is the right block
- "What You'll Learn" educational objectives box with bullet points, level badge, and estimated read time — that is the job of Lesson Objectives, not a generic content block.
- Use it when you need the editor control labeled “Show Icon”, which exists on this block’s inspector.
- It matches pages about lesson, objectives, learn.
- 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 Lesson Objectives block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Lesson Objectives”. It sits under Blog. After insert, open Objectives and set “Show Icon”, “Show Level Badge”, “Level”, “Show Read Time”.
What makes Lesson Objectives different from other Blockenberg blocks?
"What You'll Learn" educational objectives box with bullet points, level badge, and estimated read time. Inspector labels on this block include “Show Icon”, “Show Level Badge”, “Level”, “Show Read Time”.
Is the Lesson Objectives Gutenberg block free?
Yes. Lesson Objectives ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Lesson Objectives 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: Objectives, Header & Meta).
Related blog blocks
Tutorial Card
A structured tutorial block with steps, prerequisites, materials, learning outcomes, and progress tracking.
Course Lesson
A complete course lesson with objectives, content sections, resources, and navigation.
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.
Knowledge Base Article
Full knowledge base / help center article with category, difficulty, table of contents, sections, and related articles.
Learning Path
Display a structured learning path with steps, skill tags, durations and type indicators.
Chapter Navigation
Multi-part guide and series navigation with progress, prev/next, and chapter list.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Lesson Objectives from the Gutenberg inserter.