WordPress & WooCommerce

Paste the embed code into a Custom HTML block on any page or post. For WooCommerce, put it in each product's description.

Block editor (Gutenberg)

  1. Open the page or post and click + where the tester should go.
  2. Search for Custom HTML and add the block.
  3. Paste the embed code from your Fontsbox dashboard.
  4. Click Preview to check it, then Update or Publish.
HTML
<div data-fontsbox-family="123"></div>
<script src="https://fb-emb.digture.id/embed.js" async></script>

The editor shows the code, not the tester. Use Preview or view the published page to see it. The same block works in the Site Editor if you want the tester in a template.

Classic editor

Switch the editor to the Text tab (not Visual), paste the embed code, and update the page. Switching back to Visual can remove the script, so stay on Text when editing that part.

Elementor and other page builders

Drag an HTML widget (in Elementor) or your builder's code/HTML element onto the page and paste the embed code into it.

WooCommerce products

Each product can show its own family:

  1. Open Products and edit the product.
  2. In the product description, switch to the Text tab.
  3. Paste the embed code for that family and click Update.

Many foundries prefer a separate "Try it" section. You can also paste the code into the short description, or into a product tab if your theme or a plugin adds custom tabs.

If the script is removed when you save

WordPress only lets Administrators (and Editors on single sites) save <script> tags in content. If yours disappears, either ask an Administrator to paste it, or load the script once for the whole site and keep only the <div> in your content:

  1. Install a header and footer code plugin, such as WPCode.
  2. Add the script line to the site footer:
HTML
<script src="https://fb-emb.digture.id/embed.js" async></script>
  1. In pages and products, paste only the <div> part:
HTML
<div data-fontsbox-family="123"></div>

WordPress.com

WordPress.com removes scripts on plans that don't support plugins. You'll need a plan that allows plugins and custom code. Self-hosted WordPress (wordpress.org) has no such limit.

Caching and speed plugins

Plugins that "delay" or combine JavaScript (WP Rocket, LiteSpeed Cache, Autoptimize and similar) can stop the tester from loading until the visitor scrolls or clicks. If that happens, exclude fb-emb.digture.id/embed.js from JavaScript delay and combining, then clear the cache.

Still stuck? See Troubleshooting.