In this article we will be taking a look at on how to embed Trustmary's testimonials and surveys to a website when using Joomla as the content management system. If you're looking for instructions on the same subject but for a different platform, please refer to the other articles in our Help documentation's Integrations section.
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.
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.
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.
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 step.
Embedding the code in Joomla
Preparing for the embed
As the default editor in Joomla (TinyMCE) removes parts of the embed code, the first thing that needs to be done is to change the editor from Joomla's settings. Let's start with clicking on System from the dashboard.
From the System Dashboard, go to Global Configuration under Setup.
From here, look for Default Editor under the Site tab. Click on the drop-down menu and select some other editor than TinyMCE. For the sake of this guide, we selected None from the drop-down.
After you've made the changes, just click Save & Close in the top of the page and you're automatically moved back to the Joomla dashboard.
Embedding the code
Now that everything is in order with Joomla and your embed code, you can start actually embedding it.
From Joomla's dashboard, find the Articles section and click the plus icon to add a new one. Naturally, the embed can be placed into existing articles too, which can be done by entering the articles section and just selecting the article you would like to edit.
Once in the editing view of an article, add a title and paste the embed code from before to the text box labeled Article Text. After the code is in its place, click on the Featured toggle from the toolbar on the right and finally Save near the top.
You've now got the code embedded, nice! All that's left is to verify it works. This can be done with clicking either Preview or your site link from near the top of the page.
Below you can see a preview of how the testimonial embed should look more or less. If the embed moves and reacts as it should, you've done everything correctly and you're all set!