Nov 03 2020 04:34 PM
How do we embed this code in a sharepoint site?
<a href="https://URL" class="fbo-embed" data-fbo-id="416430" data-fbo-lightbox="yes" data-fbo-width="250px" data-fbo-height="188px" data-fbo-version="1" style="max-width: 100%">Document Name</a><script async defer src="https://url.com/EmbedScriptUrl.aspx?m=redir&hid=416430"></script>
Nov 03 2020 09:19 PM
@agukmm If you are using SharePoint online (modern experience) then you can use Embed webpart to embed the code on SharePoint page.
Reference: Add content to your page using the Embed web part
If you are SharePoint on-premise or classic experience in SharePoint online then you can use Script Editor or Content Editor webpart to embed the code on page.
Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Jan 05 2021 10:04 AM
Use the Embed Code web part and an iframe is required. You wither have to just put the link you want to embed or use an iframe. What you are trying to do isn't possible with the Embed Code web part as is and the solution may or may not work.
If you want to add that code...
The Embed Code web part is a big disappointment. It is fine for embedding videos but not for custom code snip-its. I wish Microsoft would change it but they seem more worried about the security of ignorant users... (on internal sites no less). :face_with_rolling_eyes:
Jan 05 2021 02:42 PM
@agukmm
Please note that if you are using an iframe, the source has to be approved in that specific site as "trusted sites" to be loaded from your SharePoint site.
Yours sincerely,
Aref Halmstrand