How to Fix PowerPoint Embed in WordPress Requiring Microsoft Sign-In
Question details
Users encounter a Microsoft 365 sign-in prompt or a placeholder when trying to view a PowerPoint presentation embedded on a WordPress website.

- Product
- Microsoft PowerPoint
- Device & OS
- not provided
- Scenario
- Embedding a PowerPoint presentation into a WordPress post or page for public viewing.
- Observed behavior
- Instead of loading the presentation directly, the embedded iframe displays a prompt forcing website visitors to sign in to a Microsoft account.
Before attempting to fix the embed code, check whether your PowerPoint file is stored in a personal OneDrive account or a OneDrive for Business (work or school) account, as the sharing permission configurations differ significantly between the two.
Configure Embed Code for OneDrive for Business
Use this method if you are using a work or school account to ensure the embed link overrides internal organization restrictions and is accessible to the public.
OneDrive for Business accounts often have default sharing policies that restrict file access to people within your organization. To display an embedded file on a public WordPress site, you must manually generate a public sharing link and combine it with your iframe embed code.
Log in to your work or school account and open the presentation in PowerPoint for the web.
Navigate to File > Share > Embed. Adjust the dimensions if needed, then copy the provided iframe code.
Close the embed dialog, click 'Share' again, and create a new sharing link with the permission set to 'Anyone with the link can view'. Copy this URL.
Paste your iframe code into a text editor. Locate the 'src=' URL inside the code and replace it entirely with your newly generated public sharing link.
In your WordPress block editor, add a 'Custom HTML' block and paste the updated iframe code. Preview the post to ensure the sign-in prompt is gone.

Embed Presentation using a Personal OneDrive Account
For users on a personal Microsoft account, generating a public embed code is supported natively and requires fewer steps.
Try WPS Office for Seamless Presentation Creation and Sharing
Avoid complicated permission settings and cloud sign-in prompts. WPS Office is a free, lightweight alternative to Microsoft Office that allows you to easily create, edit, and export presentations to shareable formats like PDF or video for hassle-free web embedding.
- 1. Open presentation in WPS: Launch WPS Presentation and open your slideshow.
- 2. Export to a web-friendly format: Go to the 'Menu' and choose 'Export to PDF' or 'Export to Video'.
- 3. Upload to WordPress: Upload the resulting file directly to your WordPress Media Library to embed it natively without external sign-in prompts.

Frequently Asked Questions
Why does my WordPress site ask visitors to sign in to view my PowerPoint?
This occurs when the embedded PowerPoint file is hosted on a OneDrive or SharePoint account with restricted sharing permissions. If the file's sharing link is not explicitly set to 'Anyone with the link can view', Microsoft forces visitors to authenticate to verify they have permission.
Can I embed a PowerPoint presentation in WordPress without using a plugin?
Yes, you can embed presentations without plugins by generating an iframe HTML code directly from OneDrive (Personal or Business) and pasting it into a 'Custom HTML' block within the default WordPress editor.
What is the difference between embedding from Personal OneDrive and OneDrive for Business?
Personal OneDrive offers a direct 'Embed' option that instantly generates a publicly accessible iframe code. OneDrive for Business requires a manual workaround where you generate a basic embed code, then separately generate a public sharing link, and replace the source URL within the iframe code.
Is there an easier way to share my slides on WordPress without using Microsoft iframes?
Yes. Instead of relying on cloud-based iframes, you can export your PowerPoint presentation as a PDF or a video file. Once exported, you can upload these files directly to your WordPress Media Library and use native WordPress blocks (like the File block or Video block) to display them flawlessly to all visitors.




