How to Prevent SharePoint Images from Opening in Zoom View
Question details
The user wants to stop images inserted on a SharePoint page from acting interactively (opening a larger view on click) and instead display them as static backgrounds.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Designing a SharePoint page where images should act as non-interactive background elements.
- Observed behavior
- Images behave as interactive elements by default, changing the cursor to a hand and opening a zoomed view when clicked.
Before attempting to modify image behaviors, note that modern SharePoint pages are designed with built-in responsive viewing features, meaning default image behaviors are often restricted from simple UI changes.
Use Custom CSS or SPFx Framework (Advanced)
Since Modern SharePoint lacks a native toggle to disable the image viewer, advanced users can use custom code to remove interactivity.
Modern SharePoint intentionally locks down certain UI behaviors, including the lightbox or zoom effect on images. To bypass this, developers can inject custom CSS or use the SharePoint Framework (SPFx).
Determine if you are using Modern or Classic SharePoint, as Classic pages allow easier Script Editor web part injections.
If using Modern SharePoint, use the SharePoint Framework (SPFx) application customizer to inject CSS that targets and disables pointer events on the specific image class.
Post your specific page structure on the Microsoft Q&A SharePoint forum for tailored CSS snippets and custom development guidance.

Use the Section Background Feature
Instead of inserting an Image Web Part, apply the image directly to the page section background to ensure it remains completely static.
Design and Share Documents Easily with WPS Office
While SharePoint has strict limitations on page design and image behavior, you can create beautifully formatted, static documents like PDFs or Word files using WPS Office and share them effortlessly. WPS Office is a highly compatible, lightweight, and free alternative to Microsoft Office.

Frequently Asked Questions
Can I disable the image lightbox feature in Modern SharePoint?
No, Modern SharePoint does not currently offer a built-in toggle or setting to disable the lightbox (zoom) effect for the standard Image Web Part.
Why does my cursor turn into a hand over SharePoint images?
By default, SharePoint treats inserted images as interactive elements so users can click them to view a higher-resolution, larger version of the image.
How do I make an image a true background in SharePoint?
To make an image a true non-interactive background, use the 'Edit section' tool on a modern page and upload your image under the section background settings, rather than inserting it using an Image Web Part.




