> Documentation index: https://fundchart.io/docs/llms.txt

# How to embed fund performance charts in WordPress

Add live, compliant fund charts to a WordPress site with one line of HTML — no plugin required.

## What investors find today

Most boutique managers' WordPress sites link to a PDF. The big houses show a live fund page: a growth chart, the performance table, allocation, holdings, all in the firm's colours, all current. An adviser who opens both sees the difference before reading a number. FundChart gives the boutique the same page, from the factsheet it already publishes, and WordPress needs one block.

## Before you start

- A FundChart workspace with the fund published (its review: Check data, Layout, Approve). Open the fund's review, go to the **Layout** step, press **Layout** to open the panel and open the **Embed code** card: **Copy** beside "Full fund page" gives the two lines you need, a script tag and a `<fundchart-page>` tag with your token and the fund's id. The `name` on the tag is the fund's slug, so twenty similar lines can be told apart. Home's Live tab has the same copy button beside each live fund.
- Your site's domain added under Settings → API & agents → allowed domains. The token renders only on the domains you list.
- A WordPress user who can add a Custom HTML block (an Administrator, or an Editor on a site that allows unfiltered HTML).

![The Layout step's Embed code card: Full fund page, Single widget and Fund centre, each with a Copy button.](/guides/embed-code-ui.jpg)

## Add the block

1. Edit the page (or create one, for example `/funds/global-equity/`).
2. Add a **Custom HTML** block and paste the two lines from the Embed code card:

```html
<script async src="https://embed.fundchart.io/e.js"></script>
<fundchart-page token="fcp_YOUR_TOKEN" fund="YOUR_FUND_ID" name="your-fund" background="inherit"></fundchart-page>
```

![The Custom HTML block with the two lines pasted, selected in the block editor.](/guides/wordpress/1-html-block.png)

3. Give it the width of the page. The Custom HTML block has no width control of its own, so add a **Group** block, set the Group's **Align** to **Full width**, and drag the Custom HTML block inside it. A block theme's text column is about 650px; left in it, the page renders its phone layout on a desktop.

![The Group block selected, its Align menu open, Full width chosen.](/guides/wordpress/2-align-full.png)

4. Update or publish the page. Open it: the fund page appears where the block sits, in your theme, under your header and footer.

![The published WordPress page with the fund page in place under the site's own header: fund facts, headline returns, growth chart.](/guides/wordpress/3-published.jpg)

## Full page, single widgets, or a fund centre

The same script serves three tags. `<fundchart-page>` is the whole fund page. `<fundchart-widget type="growth">` (or `perf-chart`, `allocation`, `holdings`, `facts`) drops one chart into a column of your own layout. `<fundchart-center>` lists every published fund in the workspace as one table, for a Funds page. Several tags on one page share the one script.

## Matching your theme

- `background="inherit"` lets the widgets sit on your page's own background, light or dark.
- The look (Editorial or Classic), the brand colour and the font are set in FundChart, in the Layout step's Look card, not in WordPress; change them there and every page follows.
- Elementor: use the **HTML** widget inside a full-width container and paste the same two lines. Divi, WPBakery and the classic editor work the same way: any place that accepts raw HTML.
- Editors without unfiltered HTML can use a shortcode from a small plugin; the FundChart support team has one ready.

## Month-end

Nothing changes in WordPress. Upload next month's factsheet in FundChart, review, publish; the block on your site shows the new month within a minute. Every figure on the page traces to a line in the file you uploaded, and the audit trail records who uploaded, who approved, and when it went live, so the page investors see is the one compliance signed off.

## If it does not show

- A dashed box reading "this fund isn't published yet, or the token is wrong": publish the fund, or copy the tag again from the Embed code card.
- "domain not allowed for this token": add the site's domain under allowed domains.
- Charts look squeezed, or the page shows its phone layout on a desktop: the block is not in a full-width Group (step 3), or it sits inside a fixed-width column.
- Nothing at all: a security plugin stripped the script tag. Allow `embed.fundchart.io`, or use the shortcode.

---
Source: https://fundchart.io/docs/embed/wordpress
Updated: 2026-11-08
