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.

Get Blockenberg

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

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Meme Generator”, insert it. Category: Interactive.
  3. Configure inspector controls that exist on this block. Open Block Content. Set “Default Image URL”, “Default Top Text”, “Default Bottom Text”, “Canvas Width (px)”.
  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
Default Image URLText field in the inspector. Visitors can change this — leave blank to use a plain background. Saved as `defaultImageUrl`.
Default Top TextText field in the inspector. block.json default: TOP TEXT. Saved as `defaultTopText`.
Default Bottom TextText 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`.
FontSelect 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 ButtonOn/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 BackgroundColor control in the inspector. block.json default: #cccccc. Saved as `canvasBg`.
Meme Text ColorColor control in the inspector. block.json default: #ffffff. Saved as `memeTextColor`.
Meme Stroke ColorColor control in the inspector. block.json default: #000000. Saved as `memeStrokeColor`.
Section BackgroundColor control in the inspector. block.json default: #f8fafc. Saved as `sectionBg`.
Title ColorColor control in the inspector. block.json default: #1e1b4b. Saved as `titleColor`.
Accent ColorColor control in the inspector. block.json default: #6366f1. Saved as `accentColor`.

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

Get Blockenberg

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

Get Blockenberg