Finding your widget script and embed code

First, you need to find the widget's embed code and the global script. Start by navigating to the Widgets section in Trustmary, and selecting an inpage widget.

If you don't have one yet, click on Create new to start creating one.

Now that you're in the widget editor, go to the Add to website tab where you'll find a global script called Trustmary tag and the embed code of the particular inpage widget. The embed code can be copied by clicking on it.


This guide assumes you've already installed the global script, but if you haven't, you can follow this article for instructions.


Embedding the widget to WordPress

Start by opening up your dashboard in WordPress and navigating to Pages. Here you can either add a completely new page by clicking Add New, or edit an existing page by selecting one.

wp wordpress trustmary integration

This opens up the page editor. In here, type a slash (the "/" -symbol) in the body section of the page (under the title) and the block menu opens up. Choose Custom HTML as the block type.

After creating the Custom HTML block, the embed code can be pasted into the text box inside the block. To verify the widget is functioning correctly, click either the Preview button or the Publish button in the top right corner.

After checking that the widget loads properly, you're all set!

Did this answer your question?