CodePen
A CodePen allows site visitors to view user-created HTML, CSS and JavaScript code. CodePen blocks can be added to most content pages.Â
For more information on the block, visit CodePen in our Block library.
Embed CodePen
From the administration bar, select Workbench, and then select My Dashboard.
Select a content page (for example a Web page) from Content list or create a new page from Content types.
On the content page, select the Layout tab.Â
Select + Add section, if applicable, then select + Add block.
Under External embeds, select CodePen.
Add Title. Select whether you want it to be displayed by checking/unchecking the Display Title box.
Enter the CodePen ID.
Enter the CodePen username with the CodePen ID.
Enter the Author's name for display. Anonymous pens cannot be embedded.
Enter the Title for display.
Select Default tab(s) to open from the drop-down menu. If the size of the block is too small (for example, if the block is part of a 4 column section), then only one tab will be displayed. If the CodePen does not support the selected tab, it will not be displayed.
Enter the CodePen embed height. The minimum height is 100 pixels. Ensure that the pixel height is large enough to accommodate the size of the CodePen.
Select Add block (Or Update if it’s a pre-existing CodePen Block).
Select state from the Change to: drop-down menu.
Select Save layout.
Â