Interactive · Gutenberg
Flashcard block for WordPress
Interactive flashcard deck for studying. Click to flip cards, navigate with arrows or buttons, shuffle deck, mark cards as known, and track progress.
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
Interactive flashcard deck for studying. Click to flip cards, navigate with arrows or buttons, shuffle deck, mark cards as known, and track progress.
Inspector panels on this block: Content, Cards, Options, Appearance. Those titles come from index.js, not from a shared template.
Where to find it
Gutenberg inserter → Interactive → search “Flashcard” (block name `blockenberg/flashcard` in block.json). Style it in the sidebar after insert.
How to use Flashcard block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Flashcard”, insert it. Category: Interactive.
- Configure inspector controls that exist on this block. Open Content. Set “Content — Title”, “Subtitle”, “Show Title”, “Show Subtitle”.
- Check the published page. The view script reads HTML data attributes: data-opts. The block editor preview may not run the same view script.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Content — Title | Text field in the inspector. block.json default: Flashcard Deck. Saved as `title`. |
| Subtitle | Text field in the inspector. block.json default: Click a card to reveal the answer. Saved as `subtitle`. |
| Show Title | On/off toggle in the inspector. On by default. Saved as `showTitle`. |
| Show Subtitle | On/off toggle in the inspector. On by default. Saved as `showSubtitle`. |
| Front | Text field in the inspector. |
| Back | Text field in the inspector. |
| Show Progress Bar | On/off toggle in the inspector. On by default. Saved as `showProgress`. |
| Show Shuffle Button | On/off toggle in the inspector. On by default. Saved as `showShuffleBtn`. |
| Show "Mark Known" Button | On/off toggle in the inspector. On by default. Saved as `showKnownBtn`. |
| Enable keyboard shortcuts | On/off toggle in the inspector. On by default. Saved as `enableKeyboardShortcuts`. |
| Show Keyboard Hint | On/off toggle in the inspector. On by default. Saved as `showKeyboardHint`. |
| Card Height (px) | Numeric range control in the inspector. Range 120–500. block.json default: 220. Saved as `cardHeight`. |
| Typography — Title | Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoTitle`. |
| Subtitle (Typo Subtitle) | Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoSubtitle`. |
| Card Text | Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoCard`. |
| Max Width (px) | Numeric range control in the inspector. Range 320–1200. block.json default: 660. Saved as `contentMaxWidth`. |
| Accent Color | Color control in the inspector. block.json default: #6366f1. Saved as `accentColor`. |
| Card Front Background | Color control in the inspector. block.json default: #ffffff. Saved as `cardFrontBg`. |
| Card Back Background | Color control in the inspector. block.json default: #4f46e5. Saved as `cardBackBg`. |
| Card Back Text | Color control in the inspector. block.json default: #ffffff. Saved as `cardBackColor`. |
| Known Color | Color control in the inspector. block.json default: #22c55e. Saved as `knownColor`. |
| Section Background | Color control in the inspector. block.json default: #f5f3ff. Saved as `sectionBg`. |
| Controls Background | Color control in the inspector. block.json default: #ffffff. Saved as `cardBg`. |
| Title Color | Color control in the inspector. block.json default: #3730a3. Saved as `titleColor`. |
| Subtitle Color | Color control in the inspector. block.json default: #6b7280. Saved as `subtitleColor`. |
| Label Color | Color control in the inspector. block.json default: #374151. Saved as `labelColor`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-opts.
- Keyboard handlers move focus between items.
When this is the right block
- Interactive flashcard deck for studying. Click to flip cards, navigate with arrows or buttons, shuffle deck, mark cards as known, and track progress — that is the job of Flashcard, not a generic content block.
- Use it when you need the editor control labeled “Content — Title”, which exists on this block’s inspector.
- It matches pages about flashcard, study, quiz.
- Inserter grouping: quizzes, games, and click-to-reveal experiences.
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 Flashcard block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Flashcard”. It sits under Interactive. After insert, open Content and set “Content — Title”, “Subtitle”, “Show Title”, “Show Subtitle”.
What makes Flashcard different from other Blockenberg blocks?
Interactive flashcard deck for studying. Click to flip cards, navigate with arrows or buttons, shuffle deck, mark cards as known, and track progress. Inspector labels on this block include “Content — Title”, “Subtitle”, “Show Title”, “Show Subtitle”.
Is the Flashcard Gutenberg block free?
Yes. Flashcard ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Flashcard 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: Content, Cards, Options, Appearance).
Related interactive blocks
Memory Game
Interactive card-flip memory matching game with emoji themes, difficulty levels, move counter, timer, and best score tracking.
Interactive Poll
Clickable voting poll with animated results stored per visitor.
Knowledge Check
Quick quiz question with instant reveal — great for educational content, articles, and explainers.
Trivia Game
A timed multiple-choice trivia game with built-in questions across Science, History, Geography, and Pop Culture categories.
Word Scramble
Interactive word unscramble game with categories, hints, scoring, and timer. Multiple difficulty levels.
2048 Game
The classic sliding-tile 2048 puzzle. Swipe or use arrow keys to merge tiles and reach the 2048 tile.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Flashcard from the Gutenberg inserter.