Skip to main content Skip to secondary navigation

Embeddable Media

Main content start

Stanford Sites supports the ability to add embeddable media either by using an oEmbed or by submitting a request.

Currently, supported oEmbeds can be added directly by site managers to their site's media library. For embeddable media not directly supported, site managers can request their addition through our Stanford Web Services ServiceNow form, noting the related embed code.

Once embeddable media have been added to your site's media library, site managers have the full ability to place, move, and delete them throughout their sites. Site managers will have the ability to modify the oEmbed codes for supported embeddable media, but not for custom embeddable media.


Important Note: Stanford does not support single sign-on (SSO) through an iFrame. This change is being made University-wide for security purposes to limit Cross-Site Scripting and Cross-Site Request Forgery vulnerabilities and is an industry-wide standard. We suggest sending users to the desired content by linking directly to the secured page instead of using iFrames. Learn more about by visiting:

 Embeddable Content Policy


Supported oEmbeds

The following oEmbed services have been tested for use on Stanford Sites and can be added directly by site managers to their sites.

  • ArcGIS StoryMaps
  • CircuitLab
  • Dailymotion
  • Facebook
  • Flickr
  • Getty Images
  • Instagram
  • Issuu
  • Livestream
  • MathEmbed
  • Simplecast
  • SlideShare
  • SoundCloud
  • Spotify
  • Stanford Digital Repository
  • Twitter

Please note that some embeds may not look or behave exactly as desired, which could cause accessibility, usability, and other issues. Due to this, we recommend testing your embeds carefully before publishing. If you are having trouble with an embed displaying incorrectly on Stanford Sites, please send us more info through our Stanford Web Services ServiceNow form.

Accessibility of embedded content

Not all embeds are fully accessible. Because that's third party content over which we have no control, if there are accessibility issues, you must provide an alternative approach to accessing the content.

Embedding Tweets

The oEmbed feature only allows embedding of a single tweet. If you would like to embed a Twitter feed, please submit a Help request and include the Twitter embed code for the Twitter feed you want to embed and Stanford Web Services will add the embed to your site's media library.

Adding embedables

Adding oEmbed media 

  1. In the administrative toolbar select Manage then hover over All Content > All Media > Add media > Add Embeddable to be redirected to the “Add Embeddable” page:
    Add embeddable config page
  2. Enter a name for your embedded media in the corresponding text field.
  3. Enter the oEmbed URL in the corresponding text field.
  4. Leave the Embed Code field empty.
  5. Click Save.

Once the embedded media has been added to your site's media library, they can be added within the text area paragraph type

Adding Embed Codes

Because embed codes can introduce security vulnerabilities, permission to add embed codes is limited by role.

  1. On the website of the desired service, copy the embed code. 
  2. Returning back to your Stanford Site, from your site’s admin menu navigate to All Content > All Media > Add Media > Embeddables.
  3. Paste the code in the Embed Code box.
  4. Enter a name for the widget that describes the content, for example, “BeWell Events Localist Widget.”
  5. Leave the oEmbed URL empty.
  6. Click Save.

Once the embedded media has been added to your site's media library, they can be added within the text area paragraph type

Troubleshooting

If your embed is not displaying as expected, try logging out. Some embeddables render only for anonymous users.