Introduction

This article will instruct you on how to embed Trustmary's testimonials and surveys to your site when using WordPress' default theme and editor. If you're looking for instructions on the same subject, but for a different WordPress editor, please refer to the main article covering the integrations of Trustmary and WordPress.

Getting the embed code

First of all, you will need to copy the embed code for the inpage embed or the survey you're embedding from Trustmary.

Testimonial inpage

For the reviews or testimonials, the code can be found by choosing the embed in question and opening it from the Embeds page, which can be seen on the image below.

trustmary integration embed wp wordpress default theme

The embed code will be shown on the embeds front page. The code can be copied by clicking the Copy embed code button, or manually selecting and copying it.

trustmary integration embed wp wordpress default theme code

Surveys

For surveys, the embed code can be found in the Collect tab of the survey in question. Once there, scroll down to the end of the page and you will see a section titled Embed to Website. Click Copy under the code snippet and you're ready to move to the next stage.

Embedding the code in WordPress

Once you have the code, you're ready to embed it into your WordPress page. 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 Shortcode as the block type.

wp default editor trustmary embed integration

After creating the Shortcode block, the embed code can be pasted into the text box inside the block. To verify the embed is functioning correctly, click Preview in the top right corner and open up a preview of the page that best fits your use case.

wp default editor trustmary embed integration

If your embed displays similarly (note that the embed's appearance may differ) to the one in the image below and is responsive, you're all set!

wp default editor trustmary embed integration

If the embed is non-responsive, not visible or not moving, please check that the embed code matches the one diplayed in Trustmary and that JavaScript is enabled on your browser.

Did this answer your question?