Interactive · Gutenberg
Meme Generator block for WordPress
Interactive meme maker. Visitors type top and bottom text over any image and download the result as a PNG.
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 meme maker. Visitors type top and bottom text over any image and download the result as a PNG.
Inspector panels on this block: Block Content, Canvas Settings, Meme Text Style. Those titles come from index.js, not from a shared template.
Behavior controls: “Default Image URL” (Visitors can change this — leave blank to use a plain background); “Font” options: Impact (Classic Meme), Arial Black, Comic Sans MS, Georgia Bold, Courier New.
Where to find it
Gutenberg inserter → Interactive → search “Meme Generator” (block name `blockenberg/meme-generator` in block.json). Style it in the sidebar after insert.
How to use Meme Generator block for WordPress
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Meme Generator”, insert it. Category: Interactive.
- Configure inspector controls that exist on this block. Open Block Content. Set “Default Image URL”, “Default Top Text”, “Default Bottom Text”, “Canvas Width (px)”.
- 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 |
|---|---|
| Default Image URL | Text field in the inspector. Visitors can change this — leave blank to use a plain background. Saved as `defaultImageUrl`. |
| Default Top Text | Text field in the inspector. block.json default: TOP TEXT. Saved as `defaultTopText`. |
| Default Bottom Text | Text field in the inspector. block.json default: BOTTOM TEXT. Saved as `defaultBottomText`. |
| Canvas Width (px) | Numeric range control in the inspector. Range 280–900. block.json default: 560. Saved as `canvasWidth`. |
| Canvas Height (px) | Numeric range control in the inspector. Range 200–700. block.json default: 420. Saved as `canvasHeight`. |
| Font | Select control; the chosen value is saved on the block. Options: Impact (Classic Meme); Arial Black; Comic Sans MS; Georgia Bold; Courier New. block.json default: Impact. Saved as `memeFont`. |
| Stroke Width (px) | Numeric range control in the inspector. Range 0–12. block.json default: 3. Saved as `memeStrokeWidth`. |
| Show Download Button | On/off toggle in the inspector. On by default. Saved as `showDownload`. |
| Meme Font Size (px) | Numeric range control in the inspector. Range 20–120. block.json default: 52. Saved as `memeFontSize`. |
| Canvas Background | Color control in the inspector. block.json default: #cccccc. Saved as `canvasBg`. |
| Meme Text Color | Color control in the inspector. block.json default: #ffffff. Saved as `memeTextColor`. |
| Meme Stroke Color | Color control in the inspector. block.json default: #000000. Saved as `memeStrokeColor`. |
| Section Background | Color control in the inspector. block.json default: #f8fafc. Saved as `sectionBg`. |
| Title Color | Color control in the inspector. block.json default: #1e1b4b. Saved as `titleColor`. |
| Accent Color | Color control in the inspector. block.json default: #6366f1. Saved as `accentColor`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-opts.
- Drawing happens on a canvas element after the page loads.
- Keyboard handlers move focus between items.
When this is the right block
- Interactive meme maker. Visitors type top and bottom text over any image and download the result as a PNG — that is the job of Meme Generator, not a generic content block.
- Use it when you need the editor control labeled “Default Image URL”, which exists on this block’s inspector.
- It matches pages about meme, generator, image.
- 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 Meme Generator block in WordPress?
Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Meme Generator”. It sits under Interactive. After insert, open Block Content and set “Default Image URL”, “Default Top Text”, “Default Bottom Text”, “Canvas Width (px)”.
What makes Meme Generator different from other Blockenberg blocks?
Interactive meme maker. Visitors type top and bottom text over any image and download the result as a PNG. Inspector labels on this block include “Default Image URL”, “Default Top Text”, “Default Bottom Text”, “Canvas Width (px)”.
Is the Meme Generator Gutenberg block free?
Yes. Meme Generator ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.
Can I style Meme Generator 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: Block Content, Canvas Settings, Meme Text Style).
Related interactive blocks
2048 Game
The classic sliding-tile 2048 puzzle. Swipe or use arrow keys to merge tiles and reach the 2048 tile.
Analog Clock
A beautiful live analog clock rendered with SVG. Fully customizable: clock style, timezone, colors, size, and optional date/time labels.
Bingo Card
Interactive 5×5 Bingo card with number calling, win detection, and celebration animations.
Content Score
Visual content or SEO scoring card with circular gauge, color-coded criteria rows, and overall grade.
Dice Roller
Interactive dice roller supporting d4, d6, d8, d10, d12, d20 and d100. Roll multiple dice, see individual results, totals, and past roll history.
Drawing Canvas
A fully interactive freehand drawing canvas with multiple tools, undo, and download — right in your page.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Meme Generator from the Gutenberg inserter.