Skip Main Navigation

Adding HTML Code to a Page

When we add HTML embed code to a webpage, we usually do it through assets. You will first create the asset where you will paste the embed code, and then you will drop the asset onto the page.

Note: Adding HTML code to a page can be dangerous. Please ensure that it is from a reliable and approved source before attempting to embed.

Creating the Asset

  1. Click on the Content tab in the top left hand site of Omni CMS
  2. Click on Assets
  3. Click on the + New button on the top right hand side
  4. Select the Source Code option that looks like this: <>
  5. Give the asset a Name and Description, make sure it's a name that will make it easy to find in the future and includes the name of your site and what the embed code is, e.g. "Foxworthy Art Gallery Faculty Show"
  6. Under Asset Content there is space to paste your html code. You can use CTRL C and CTRL V to copy and paste (command c, command v on Mac)
  7. Double check to make sure you have pasted all the HTML code correctly and then click Create
  8. Submit the page for publishing with a note in the subject  saying what the code will be used for and where it is coming from. 

Placing the Embed Code on the Webpage

Once your asset has been approved and published you can then add it to your webpage. Not all code will embed as expected, so it may need adjustments after you have submitted the page with the asset on it. If anything isn't functioning properly contact the Web Services Specialist.

  1. Login to the page that you want to embed the code on. If it is a new page, you will need to create the page and make sure it is published first.
  2. Click the green edit button so you are in the WYSIWYG and then put your cursor in the spot where you want to embed the code.
  3. Click on the asset tool in the toolbar. It looks like a square made out of two arrows and is one of the last tools.
  4. In the Filter by Name blank, start to type the name of your asset and it should appear
  5. Click on the asset once it appears and then click Insert
  6. The asset will show on your page as a text with the name of the asset with a striped line over it.
  7. When you click the Save and Exit tool (disk) you should be able to see how the embed code is reacting.
  8. If everything looks good, submit the page for publishing.