Note: This guide applies to the Solo plans.


Introduction

In this article we will be taking a look at on how to embed Trustmary's testimonials and surveys to a Drupal website. If you're looking for instructions on the same subject but for a different platform, check out our other articles in our Help documentation's Integrations section.

Getting the embed code

Start by navigating to the Widgets section in Trustmary. In there, select a widget or create a new one.

In the widget editor, click the Add to website button which opens up a drawer. From there, copy the code snippet with the Copy script button.

What to do with the code snippet?

For the widgets to work, you'll need to copy the code from Trustmary to your website, either straight to the source code, or through your platform's editor. The website platforms usually have an element called code, html, embed or the like that can run the code.

For more information on embedding to different platforms, check out our help article collection on the topic.

Embedding the code in Drupal

Start by opening Drupal and clicking on a section on the page you want to edit, marked with a pencil icon and selecting edit in the drop-down menu. Alternatively, you can create a new page through the Content tab and by clicking the Add content button.

Once in the editing view, you are greeted with a text box. First enter a description for the block. Then, select Full HTML as the text format near the bottom of the text box and click the Source button near the top of the text box. Now you can paste the embed code copied previously into the text box.

Don't forget to click Save once you're ready!

Did this answer your question?