Forum Discussion
JoshSinfield
Nov 11, 2021Copper Contributor
Disable clicking on image web part
Is it possible to disable the lightbox when clicking on an image web part that doesn't have a link configured? It's confusing the navigation of the page. a simple switch of hyperlink on/off would...
boomsyd
Jul 12, 2024Copper Contributor
here's the simplest workaround:
- edit the image webpart
- in the "Link" field, insert the URL of the site that the image is being placed in
- append a "#" to the end of the URL
Katie16
Jul 16, 2024Copper Contributor
Thanks boomsyd - this is really useful.
Since my last post, I found another workaround for one-off cases where we don't want an image to be clickable but don't want to use the inject css webpart to disable it across the site. We found that using the 'Mark as decorative' toggle on an individual image makes it unclickable as well as removing the alternative text. I'm not sure how long that option/functionality has been in SharePoint Modern. Slightly baffled why we didn't discover it sooner. 🙂