Facebook Pixel

Add Diversity Calendar Widgets to Microsoft SharePoint

  1. Copy the embed code (if available) for the content you want to use. To do this, go to the Iframe Code Generator, chose the widget you want to embed and copy the code.
  2. If you don’t Embed web part on your page, click the in the area you want to insert the widget, and select the Embed </> web part from the list.
  3. In the property pane on the right, paste the embed code into the Website address or embed code box.

Note:If you don’t see the property pane, click Edit web part   on the left of the web part.

Troubleshooting

Here are the most common reasons why embedding may not work:

  • Embed code must be iframe-based (that is, start and end with <iframe> tags). Embed code that uses <script> tags is not supported.
  • Only secure web sites can be embedded. Make sure the URL of the web site begins with HTTPS.
  • Not all websites allow their pages to be embedded, so you may not be able to embed them, even when they are secure and use iframe-based embed code. If you have problems, check with the website to see if they allow embedding.
  • Site collection administrators can control whether users can embed content from external websites. If they don’t let contributors embed content, you may see an error message that says, “Embedding content from this website isn’t allowed.” See your administrator and/or follow the below steps.
  • Allow or restrict the ability to embed content on SharePoint pages
  • Applies to: SharePoint Server Subscription EditionSharePoint Server 2019 SharePoint in Microsoft 365 Office for business.

 

  • Site collection administrators control whether users can embed content from external websites using the embed web part. If they don’t let contributors embed content, users who try to do so will see an error message that says, “Embedding content from this website isn’t allowed.”

Site level settings

Site collection admins can turn off embedding content, allow embedding content from a specific list of sites, or allow embedding from any site by changing the HTML Field Security setting in site settings. Here’s how:

  1. Browse to the root site of your site collection.
  2. Click Settings , click Site Settings. If you don’t see Site settings, click Site information and then click View all site settings.
  3. On the Site settings page, under Site Collection Administration, click HTML Field Security.

  1. Select one of the following options:
    • Don’t allow contributors to insert iframes from external domainsto disallow the use of iFrames for all sites in the site collection.
    • Allow contributors to insert iframes from any domainto allow the use of iFrames for all sites in the site collection and to allow data from any external website to be displayed in the iFrame. For security reasons, we do not recommend this option.

Allow contributors to insert iframes only from the following domains to add a web domain to a list of domains whose content can be displayed in iframes in the site collection. To remove a website from the list, select it, and then click Remove.

  1. Click OK.

SharePoint comes with a default list of web sites from which content can be displayed. You can add or remove sites in this list.

Sign In

Sign in to Diversity Resources