While most embeds work by simply embedding the link on the Notion page, some embeds are made of HTML or scripts and need to be loaded differently.
For this purpose, we have this script which was contributed by Dean McPherson from our user community. Thanks Dean! Also this script has been enhanced thanks to the team at Outseta to better execute scripts in the super-embed code blocks.
This script is a very useful and reliable tool that allows you to load embeds on a Super site where you want them, using the code block in Notion.
Step 1—Load the custom embed script in Super
Load this script into the Body section of Code (global or page level)
Step 2—Load your HTML or embed code in Notion
The idea is that you can then just use a code block, and pre-fix it with `super-embed:` to automatically insert the contents as HTML.
Create a code block in Notion by typing
Add to the first line:
Then add your HTML after that.
When you refresh the page in Super, the super-embed script will find the code block and then load that HTML on the page.
If your custom embed also has a script with it and it is not executing reliably, please load the script in the Head section of Code (global or page level as appropriate).