I am trying to add a Trustpilot widget to a page in UI builder. I have to add two snippets of HTML code to the page for this, one in the head and one in the body.
I’ve added the head using custom code and this seems to have worked:
I’ve then added to main HTML snippet in a paragraph on the page:
But it displays as a link rather than the widget:
Trustpilot FAQs suggest this is because the snippet in the head is not firing
It sounds like the bootstrap script hasn’t loaded. The bootstrap script is the first of the two code snippets you need in order to embed a widget on your page.
We recommend placing the script in the
<head></head>section of your website’s HTML. If you don’t have access to that, place it in the
<body></body>section just before the widget code (the second code snippet). We also have a guide to help you make sure your widget has been correctly implemented, and if it runs in a single-page application.
I have tried to place the code snippet in the body and not head, and that has also not worked.
My questions are:
1 - Is the paragraph the correct way to use the HTML code to display the widget?
2 - Is there a way to place the first snippet higher in the head, a different instuction than appendChild?
3 - Is there any other reason you can see that this isn’t displaying correctly?
App ID = 8518B92E-A6AA-5589-FFA0-B863E4A63F00
Container is frontEnd
Page is SignUp