You just need to determine the handle of the script that they are enqueueing, and you can dequeue it yourself and prevent it from being loaded. I downloaded the plugin and had a look, my guess is (I haven’t tested) that the lightbox script is jquery.fullscreen-0.4.1.js, which gets loaded on line 2448 of photo-gallery.php
function my_lightbox_prevention() {
wp_dequeue_script( 'jquery-fullscreen' );
wp_deregister_script( 'jquery-fullscreen' );
}
add_action( 'wp_print_scripts', 'my_lightbox_prevention', 100 );
Add that to functions.php and it should do the trick. You might have to dequeue a couple other scripts as well but this should point you in the right direction at the very least.
Related Posts:
- Add CSS animation as Preloader to WordPress
- ‘Customize’ button in admin bar for CSS
- How to embed HTML code from WP Coder plugin (or other) into Main Index Template of the theme
- Redirect to another page using contact form 7? [closed]
- Historical customisations won’t go away [closed]
- Changing the CSS with a plugin
- how to change a static testimonials into dynamic
- Prevent part of plugin loading in another menu
- How to generate CSS from a shortcode within a plugin
- Add stylesheets and js to template files when shortcode is used
- How to import my YouTube channel into WordPress?
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- Custom CSS for plugin form
- Custom Field Template seriously messed up in WP 3.1.1
- My Category is too big on the Menu what can i do?
- how to load the language file in plugin?
- Plugin upgrade issue
- How do I modify the position of a plugin?
- How to use get_theme_mod in gutenberg editor wordpress?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
- How to add a default value to get_option if it’s used as a variable?
- How can I capture Memberpress user info after signup [closed]
- My plugin wants to update another plugin
- I have no idea “How change font for elements in widget?”
- View Private Published Page with URL Code (no login required)
- JS Support Ticket – Auto create WP account
- How to show Recent Page instead of Post?
- Remove Duplicator plugin from admin menu if not an administrator
- plugin style conflicts, how to override? [closed]
- How to Display a Plugin function (content) on frontpage using index.php
- Is there an earlier hook than login_head or login_enqueue_scripts?
- How to disable CSS rule in Twentythirteen style.css?
- Input with spaces in Shortcode attributes overwritten by defaults
- Theme’s default styles are overriding my plugin’s custom CSS
- Remove ALL css for a specific plugin page
- Add a custom form on the post-new.php admin page
- Removing customise fields during plugin uninstallation
- Globally register styles but enqueue them selectively
- Edit Yoast SEO breadcrumbs output [closed]
- What’s the best way to implement AJAX in WordPress?
- CSS from textarea in options page to frontend what to do
- How to Create a Custom Panel and Fields in Post Page [Plugin]
- Translating long texts with html formatting
- custom changes removed after plugin update
- W3 Total cache “empty all caches” and no stylesheets render [closed]
- Admin Panel pagination link styles
- How to style the RSS wordpress?
- Can someone please tell me what is wrong with my plugin?
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- How would I go about creating a user ranked post popularity page?
- Anonymous Postings
- Do widget options need to be escaped widget()?
- Is there any W3C compatible Share & Follow plugin?
- Does any one have Idea to get these functionalities with the plugin wp-multi-network
- WPBakery JS composer unused css [closed]
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- Disable woocommerce cookies and delete cart data automatically
- Trouble with plugin styles in admin area of WordPress
- Add a CSS class based on categroy id to archive pages
- Changing “elapsed time” to “time remaining” on MP3-jPlayer audio player with CSS or PHP changes
- className not populating in custom block
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- Run plugins only on certain pages
- Child Pages Short Code plug-in and hover capabilities?
- Overide plugin files from child theme (/inc/ ) folder
- wp_generate_attachment_metadata is creating an empty array
- Removing included CSS file that doesn’t exist
- custom payment gateway in woocommerce failed to connect to remote api server
- Plugin options page with live preview?
- Display encrypted content on my website
- How to hide CSS by default and show on button press
- (Sticky Row) How do i make a row sticky in wpbakery page builder?
- Post category with counts been display like a menu
- How to create an input field, and base the output on spreadsheet data? [closed]
- Post custom Data value in The Events Calendar plugin [closed]
- Send reply with pre-prepared answers
- Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?
- WordPress plugin output formatting
- Save custom attributes of product in woocommerce
- Calling an attribute from a plugin shortcode
- Best place for short bio,image and button [closed]
- how to access all user dashboard on fronted page [closed]
- Use of Templates in a Plugin
- What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- Why can’t I access my Intranet LDAPS with NADI?
- External Domain on WordPress Multisite
- In the archive widget, how do I sort in between two years?
- Ajax Search Lite: Customize Autoscroll
- Delete mobile menu button [closed]
- Widgets Scripts don’t load – but load when I reload the page
- Customization API for plugin development
- Fromcraft Plugin On click submit button [closed]
- Ability to automatically redirect a URL
- creating a custom shop page display on archive woocommerce
- Setup page on first login on multisite
- WordPress plugin admin html being shown in Customizer iframe
- polylang + category/tag custom language link
- Anspress Customization: How to show logged in user votes on a single answer?