How to Add Calendar to SharePoint Online Modern Page?

Requirement: Display a calendar with a Month view on SharePoint Online home page.

How to add calendar web part in SharePoint Online modern page?

Although we have the events web part, it’s not giving a calendar look and feel, but it gets all upcoming events. So, to display a calendar grid view in SharePoint Online, you can use the Embed web part with iFrame pointing to the calendar view. Follow these steps to add the calendar to SharePoint Online modern page:

  1. Navigate to the page where you would like to add calendar web part, such as Home page.
  2. Edit the page and add an “Embed” web part to it and click on “Add embed code”. add calendar to sharepoint online page
  3. Use this below format to display the calendar to any modern SharePoint Online page. Change the URL accordingly. You can adjust the height and width parameters as well.
<iframe src="" width="100%" height="500"></iframe>

Here, I have used the “isDlg=1” parameter to hide the page’s left navigation, top navigation, and other elements.

sharepoint online display calendar on home page

After adjusting some parameters and adding bit style to the embed code, here is the calendar web part on SharePoint Online page:

<iframe src="" scrolling="no" style="margin-top: -130px;" width="100%" height="100%"></iframe>
add calendar to sharepoint online modern page

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. Passionate about sharing the deep technical knowledge and experience to help others, through the real-world articles!

4 thoughts on “How to Add Calendar to SharePoint Online Modern Page?

  • Good work, Thanks!

  • Is there a way to get rid of the white space at the bottom?

  • The code doesn’t seem to work for my page. Any suggestions?


Leave a Reply

Your email address will not be published. Required fields are marked *