Disabling the lightbox on specific templates
-
I see in the FAQ example that you can disable the plugin on certain pages via a filter. Is it possible to disable the plugin on a specific set of templates (perhaps using
is_page_template()
) without passing in page IDs as well? We have a number of custom page templates that will never use photoswipe, so it makes more sense to just disable the plugin on those pages than to manually opt-out every page that uses them. If it’s possible, could you provide an example of how that would work?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Disabling the lightbox on specific templates’ is closed to new replies.