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.
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
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Family Tree”, insert it. Category: Charts.
- Configure inspector controls that exist on this block. Open Tree Settings. Set “Tree Settings — Title”, “Show Title”, “Canvas Width”, “Node Width”.
- Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Tree Settings — Title | Text field in the inspector. block.json default: Family Tree. Saved as `title`. |
| Show Title | On/off toggle in the inspector. On by default. Saved as `showTitle`. |
| Canvas Width | Numeric range control in the inspector. Range 400–1200. block.json default: 860. Saved as `svgWidth`. |
| Node Width | Numeric range control in the inspector. Range 70–160. block.json default: 100. Saved as `nodeW`. |
| Level Gap | Numeric range control in the inspector. Range 100–250. block.json default: 145. Saved as `levelGap`. |
| Node Spacing | Numeric range control in the inspector. Range 4–60. block.json default: 18. Saved as `nodeGap`. |
| Typography — Title | Shared Blockenberg typography popover (family, size, weight, spacing). Saved as `typoTitle`. |
| Name Font Size | Numeric range control in the inspector. Range 8–18. block.json default: 12. Saved as `nameFontSize`. |
| Name Font Weight | Select 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 Size | Numeric range control in the inspector. Range 8–16. block.json default: 10. Saved as `yearFontSize`. |
| Colors — Background | Color control in the inspector. block.json default: #fafafa. Saved as `bgColor`. |
| Line Color | Color control in the inspector. block.json default: #9ca3af. Saved as `lineColor`. |
| Title Color | Color control in the inspector. block.json default: #111827. Saved as `titleColor`. |
| Text Color | Color control in the inspector. block.json default: #111827. Saved as `textColor`. |
| Name | Text field in the inspector. |
| Years / Dates | Text field in the inspector. |
| Parent (father/mother) | Select control; the chosen value is saved on the block. Options: — None —. |
| Spouse / Partner | Select control; the chosen value is saved on the block. Options: — None —. |
When this is the right block
- Interactive genealogy family tree diagram showing multi-generation relationships with spouse connections and birth/death years — that is the job of Family Tree, not a generic content block.
- Use it when you need the editor control labeled “Tree Settings — Title”, which exists on this block’s inspector.
- It matches pages about family tree, genealogy, ancestry.
- Inserter grouping: reports, dashboards, and data-heavy pages.
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
Area Chart
Smooth filled area chart with multiple datasets, gradient fills, and animation using Chart.js (CDN). Great for showing trends over time.
Bar Chart
Vertical or horizontal bar chart with multiple datasets using Chart.js (CDN). Supports stacked, border radius, and custom colors.
Box Plot
Box-and-whisker statistical chart showing min, Q1, median, Q3, max, mean, and outliers for multiple data series.
Bubble Chart
Interactive bubble chart powered by Chart.js.
Bullet Chart
Stephen Few's bullet chart — shows actual performance against a target, with background bands for Poor / Satisfactory / Good ranges.
Bump Chart
Ranking chart that shows how positions change over time — each series is a curved line with rank labels at each column.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Family Tree from the Gutenberg inserter.