Embed 3rd party website in our discourse

Hello,

I am new to discourse and not much of a developer. I wanted to add this code below but it does not appear or work. Which settings do I need to change/update in order for the code below to work?

<div id="SOIDIV_firstpriorityfinancial" data-so-page="firstpriorityfinancial" data-height="550" data-style="border: 1px solid #d8d8d8; min-width: 290px; max-width: 900px;" data-psz="00"></div>
<script type="text/javascript" src="https://cdn.oncehub.com/mergedjs/so.js"></script>
<!-- ScheduleOnce embed END -->

Hi, this is discourse meta (not discord)

Where would you like this code to be added? E.g. in the header/body/footer section?

Easiest way to add it would be to go to admin > themes & create a new theme component.
Then, in the theme component, add the code to the relevant section by clicking the edit HTML/CSS button.
Add this newly created component to All your active themes and that should do the trick.

4 Likes

You would also need to amend the content security policy settings, since otherwise the script execution will be blocked.

4 Likes

Is it possible to add it on a specific topic only?

I’m afraid it’s not.

2 Likes