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.

Get Blockenberg

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

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Flashcard”, insert it. Category: Interactive.
  3. Configure inspector controls that exist on this block. Open Content. Set “Content — Title”, “Subtitle”, “Show Title”, “Show Subtitle”.
  4. 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

ControlWhat the code does
Content — TitleText field in the inspector. block.json default: Flashcard Deck. Saved as `title`.
SubtitleText field in the inspector. block.json default: Click a card to reveal the answer. Saved as `subtitle`.
Show TitleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
Show SubtitleOn/off toggle in the inspector. On by default. Saved as `showSubtitle`.
FrontText field in the inspector.
BackText field in the inspector.
Show Progress BarOn/off toggle in the inspector. On by default. Saved as `showProgress`.
Show Shuffle ButtonOn/off toggle in the inspector. On by default. Saved as `showShuffleBtn`.
Show "Mark Known" ButtonOn/off toggle in the inspector. On by default. Saved as `showKnownBtn`.
Enable keyboard shortcutsOn/off toggle in the inspector. On by default. Saved as `enableKeyboardShortcuts`.
Show Keyboard HintOn/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 — TitleShared 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 TextShared 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 ColorColor control in the inspector. block.json default: #6366f1. Saved as `accentColor`.
Card Front BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `cardFrontBg`.
Card Back BackgroundColor control in the inspector. block.json default: #4f46e5. Saved as `cardBackBg`.
Card Back TextColor control in the inspector. block.json default: #ffffff. Saved as `cardBackColor`.
Known ColorColor control in the inspector. block.json default: #22c55e. Saved as `knownColor`.
Section BackgroundColor control in the inspector. block.json default: #f5f3ff. Saved as `sectionBg`.
Controls BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `cardBg`.
Title ColorColor control in the inspector. block.json default: #3730a3. Saved as `titleColor`.
Subtitle ColorColor control in the inspector. block.json default: #6b7280. Saved as `subtitleColor`.
Label ColorColor control in the inspector. block.json default: #374151. Saved as `labelColor`.

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

Get Blockenberg

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

Get Blockenberg