Winter Closure:

Please note that site launches will pause in advance of Stanford's Winter Closure. The last day to launch in 2025 will be Tuesday, December 16, 2025. Launches will resume on January 5, 2026.

Learn more about launching your site

Embeddable Media

Stanford Sites offers the ability to add embeddable media such as maps, social media feeds, forms, and data visualizations.

Your responsibility as a site editor

Embeddable media can introduce risks to your site's accessibility, maintainability, and security.

Learn about our policy on embeddable content

There are three methods for adding embeddable media to your Media Library. Once added, they can be used in any Text Area paragraph or in any Body field. 

Please note that Videos and Google Forms do not need to be added using these methods. Stanford Sites offers direct integrations for YouTube, Vimeo, and Google Forms.

Method 1: add approved embed codes

An embed code is code that is generated by a third-party website such as Smartsheet or Airtable, that a user can copy and paste into his or her own webpage.  This embedded code will then show the same media, application, or feed on the user's web page as it does in the original source. Changes to the source materials will result in an update on the webpage.

The following embed codes are allowed via this method:

  • Sharepoint Document iFrames
  • Airtable iFrames
  • Smartsheet iFrames
  • Google iFrames
  • Outlook Calendar iFrames
  • Localist Event Widgets

How to add approved embed codes

  1. On the website of the desired service, copy the entire embed code.
  2. Return 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 field.
  4. Edit the iFrame to add a title attribute if it does not already have one. (i.e. title="title of your embed")
  5. Enter a name for the Embeddable that describes the content, for example, “BeWell Events Localist Widget.”
  6. Leave the oEmbed URL empty.
  7. Click Save.

Method 2: add a valid oEmbed URL

oEmbed is a format that allows you to embed content using a URL provided by the product or service. This method will no longer be available in a future release and therefore is not recommended.

Supported oEmbeds

The following oEmbed services have been configured for use on Stanford Sites.

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

How to add an oEmbed URL

  1. In the administrative toolbar go to All Content > All Media > Add media > Add Embeddable.

    Screenshot illustrating Embeddable Media
  2. Enter a name for your embedded media in the Name field.
  3. Enter the oEmbed URL in the oEmbed URL field.
  4. Click Save.

Method 3: submit an embed code for review

Stanford Web Services developers will review your submitted embeddable codes to ensure the stability and security of our platform. If the embeddable passes review, we will add it to your media library.

Submit an embed code for review

Delete an embeddable

If you delete an embeddable directly from the Media Library, some embed code remains on any page where that embeddable is used. You will need to go to each page and remove that code. To delete an embeddable from your site: 

  1. Find the embeddable in the Media Library
  2. Click the pencil icon to edit the embeddable
  3. From the embeddable edit form, select Usage. This will show the pages where this embeddable used.
  4. Go to each page listed and delete the embeddable from each page.
  5. Return to the embeddable edit form, select Delete and follow the directions. 

Policies and best practices

  • Stanford does not support single sign-on (SSO) through an iFrame. This is a University-wide policy for security purposes to limit cross-site scripting and cross-site request forgery vulnerabilities. We recommend sending users to the desired content by linking directly to the secured page instead of using iFrames.
  • All embedded content must comply with Stanford's Terms of Use for sites. Please make sure you are familiar with these policies before using an embeddable from an external service. Any content found to violate this policy will be removed.
  • Anything that should be deployed sitewide, like user tracking codes, analytics tools, and chatbots should not be added as embeddable. Learn more about best practices for managing these in our section on Marketing and Analytics.
  • Monitoring the availability of the 3rd-party service you have chosen to embed on your site is your responsibility. Recent trends in social media have affected several common uses for embeds.
  • Please note that some embeds may not look or behave exactly as desired. Embeds can cause performance, 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 best practices for embeddable media

Most embeddable content is not fully accessible. Learn more about your responsibility as a site owner

Ensure iframes have title attributes

The title attribute is required for accessibility and validation of the embed code. The title attribute provides alternative text and makes the information available to assistive technology. It looks like:

title="[Title of media item]"

Here's a full example:

<iframe frameborder="no" height="200px" scrolling="no" seamless="" 

title="Eric Appel: Gels are changing the face of engineering ... and medicine" 

src="https://player.simplecast.com/a0b3e735-7259-44b5-9e5f-10451c26461b?dark=false" width="100%"> 

</iframe>

If you embed an iframe without a title it violates WCAG 2.1: Understanding Success Criterion 4.1.2: Name, Role, Value. Siteimprove will flag the issue as:

 Siteimprove issue: Inline frame missing a text alternative

Frequently Asked Questions

Tips, tricks, and troubleshooting for embeddable content.