custom script not working/saved
Test trusted shop widgets - Troedoor
I want to add Trusted Shop service reviews.
So this piece is added to the header:
<!-- Begin eTrusted bootstrap tag --><script src="https://integrations.etrusted.com/applications/widget.js/v2" defer async></script><!-- End eTrusted bootstrap tag -->
And this one on a page:
<!-- Begin eTrusted widget tag --><etrusted-widget data-etrusted-widget-id="wdg-a8d7f17a-XXXX-4fa2-a3ac-e78b7ee35724"></etrusted-widget><!-- End eTrusted widget tag -->
XXXX = changed for security reasons
When I used the Content WP block it's working fine. But when I use a Custom Text Betheme block. The code is not saved.
For me the Custom WP block is not a fine solution. Because I also want to use it on a different location for example the action bar.
Please advise. Thanks.
Comments
Hello,
You have to insert it into the Theme Options -> Global -> Hooks, in one of the hooks, this is the proper place where to use it.
thanks
Hi Pablo,
Thanks for your comment. But I only want to make this script visible on 1 page.
Isn't that possible?
Unfortunately, the pages does not have this functionality, you can only add it for all of the pages.
You would have to disable/enable that script using the JS or PHP code which will recognize if this is a homepage or not.
Thanks
But why does it work in the Content WP? Is there a reason for this and can I still expect it in the future?
It's just an item for displaying the content from wordpress editor, nothing more.
You can also insert the JS code in the "Column" item which is simply HTML editor.
If you would like to see that option available for pages, please post your suggestion here:
thanks
Sorry Pablo, what do you mean with:
You can also insert the JS code in the "Column" item which is simply HTML editor.
I only get it to work on one specific page, by adding the script to the wordpress editor. Every other betheme column doesn't work
Is that right?
Best regards, Jeroen
Pablo meant this element:
However, to work it properly, you need to have the Column text editor option set to Code in the Builder settings.
Thanks
okay, clear. thank you!