Interactive · Gutenberg

Expense Tracker block for WordPress

Track and visualize expenses by category with charts, totals, and budget management.

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

Track and visualize expenses by category with charts, totals, and budget management.

Inspector panels on this block: Content, Settings. Those titles come from index.js, not from a shared template.

Behavior controls: “Currency Symbol” options: USD ($), EUR (€), GBP (£), JPY (¥), RUB (₽).

Where to find it

Gutenberg inserter → Interactive → search “Expense Tracker” (block name `blockenberg/expense-tracker` in block.json). Style it in the sidebar after insert.

How to use Expense Tracker block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Expense Tracker”, 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, data-uid. 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: Expense Tracker. Saved as `title`.
SubtitleText field in the inspector. block.json default: Track your spending by category. 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`.
Currency SymbolSelect control; the chosen value is saved on the block. Options: USD ($); EUR (€); GBP (£); JPY (¥); RUB (₽). block.json default: $. Saved as `currency`.
Show BudgetOn/off toggle in the inspector. On by default. Saved as `showBudget`.
Default Monthly BudgetNumeric range control in the inspector. Range 100–100000. block.json default: 1000. Saved as `defaultBudget`.
Show Category ChartOn/off toggle in the inspector. On by default. Saved as `showChart`.
Max Width (px)Numeric range control in the inspector. Range 400–1200. block.json default: 720. Saved as `contentMaxWidth`.
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`.
Accent ColorColor control in the inspector. block.json default: #10b981. Saved as `accentColor`.
Danger / Over-BudgetColor control in the inspector. block.json default: #ef4444. Saved as `dangerColor`.
Section BackgroundColor control in the inspector. block.json default: #f0fdf4. Saved as `sectionBg`.
Card BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `cardBg`.
Title ColorColor control in the inspector. block.json default: #064e3b. Saved as `titleColor`.
Label ColorColor control in the inspector. block.json default: #374151. Saved as `labelColor`.
Subtitle ColorColor control in the inspector. block.json default: #6b7280. Saved as `subtitleColor`.
Border ColorColor control in the inspector. block.json default: #d1fae5. Saved as `borderColor`.

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 Expense Tracker block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Expense Tracker”. It sits under Interactive. After insert, open Content and set “Content — Title”, “Subtitle”, “Show Title”, “Show Subtitle”.

Where does Expense Tracker store visitor state?

In localStorage on that browser. Clearing site data resets it. It is not a WordPress user meta field unless render.php says so.

Is the Expense Tracker Gutenberg block free?

Yes. Expense Tracker ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Expense Tracker 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, Settings).

Related interactive blocks

Get Blockenberg

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

Get Blockenberg