Charts · Gutenberg

Family Tree block for WordPress

Interactive genealogy family tree diagram showing multi-generation relationships with spouse connections and birth/death years.

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 genealogy family tree diagram showing multi-generation relationships with spouse connections and birth/death years.

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

Behavior controls: “Name Font Weight” options: Normal (400), Medium (500), Semi-Bold (600), Bold (700), Extra-Bold (800); “Parent (father/mother)” options: — None —; “Spouse / Partner” options: — None —.

Family Tree has no render.php and no frontend.js. The saved Gutenberg HTML is what visitors see, plus Blockenberg layout/typography CSS.

Where to find it

Gutenberg inserter → Charts → search “Family Tree” (block name `blockenberg/family-tree` in block.json). Style it in the sidebar after insert.

How to use Family Tree block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Family Tree”, insert it. Category: Charts.
  3. Configure inspector controls that exist on this block. Open Tree Settings. Set “Tree Settings — Title”, “Show Title”, “Canvas Width”, “Node Width”.
  4. Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.

Inspector controls from this block’s code

ControlWhat the code does
Tree Settings — TitleText field in the inspector. block.json default: Family Tree. Saved as `title`.
Show TitleOn/off toggle in the inspector. On by default. Saved as `showTitle`.
Canvas WidthNumeric range control in the inspector. Range 400–1200. block.json default: 860. Saved as `svgWidth`.
Node WidthNumeric range control in the inspector. Range 70–160. block.json default: 100. Saved as `nodeW`.
Level GapNumeric range control in the inspector. Range 100–250. block.json default: 145. Saved as `levelGap`.
Node SpacingNumeric range control in the inspector. Range 4–60. block.json default: 18. Saved as `nodeGap`.
Typography — TitleShared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoTitle`.
Name Font SizeNumeric range control in the inspector. Range 8–18. block.json default: 12. Saved as `nameFontSize`.
Name Font WeightSelect control; the chosen value is saved on the block. Options: Normal (400); Medium (500); Semi-Bold (600); Bold (700); Extra-Bold (800). block.json default: 600. Saved as `nameFontWeight`.
Year Font SizeNumeric range control in the inspector. Range 8–16. block.json default: 10. Saved as `yearFontSize`.
Colors — BackgroundColor control in the inspector. block.json default: #fafafa. Saved as `bgColor`.
Line ColorColor control in the inspector. block.json default: #9ca3af. Saved as `lineColor`.
Title ColorColor control in the inspector. block.json default: #111827. Saved as `titleColor`.
Text ColorColor control in the inspector. block.json default: #111827. Saved as `textColor`.
NameText field in the inspector.
Years / DatesText field in the inspector.
Parent (father/mother)Select control; the chosen value is saved on the block. Options: — None —.
Spouse / PartnerSelect control; the chosen value is saved on the block. Options: — None —.

When this is the right block

Notes from the implementation

Static block: markup is saved in post content; no PHP render callback in this folder.

FAQ

How do I add the Family Tree block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Family Tree”. It sits under Charts. After insert, open Tree Settings and set “Tree Settings — Title”, “Show Title”, “Canvas Width”, “Node Width”.

What makes Family Tree different from other Blockenberg blocks?

Interactive genealogy family tree diagram showing multi-generation relationships with spouse connections and birth/death years. Inspector labels on this block include “Tree Settings — Title”, “Show Title”, “Canvas Width”, “Node Width”.

Is the Family Tree Gutenberg block free?

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

Can I style Family Tree 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: Tree Settings, People).

Related charts blocks

Get Blockenberg

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

Get Blockenberg