If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
you can add a class of ‘noLightbox’ to individual images.
At line 800
autolinkElements: 'a[rel^="prettyPhoto"], a[rel^="lightbox"], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href$=".mov"] , a[href$=".swf"] , a[href*="vimeo.com"] , a[href*="youtube.com"] , a[href*="screenr.com"]'
You can remove the entries that you do not want a lightbox element created for automatically.
I too need to adjust the lightbox feature. I do like it for certain instances but on my homepage I have a link to a vimeo page, NOT A VIMEO VIDEO, yet I get the infinite spinning wheel as if lightbox is loading. Seems to be that anytime a url starts with vimeo, it think’s it’s a video which is not the case here.
Any ideas on how to isolate this problem, yet still keep lightbox enabled for other videos? I don’t want to disable lightbox for my entire site. Thanks so much in advanced!
The topic ‘How to disable/remove lightbox on single post page’ is closed to new replies.