I assume the different spellings of .simplelightbox and .simple-lightbox are typos in your question and both are correct in your code.
My first thought would be to find the function in the plugin that is fired when the white ‘X’ is clicked (that closes the lightbox) and add your line of code. If you don’t want to edit the plugin (which would have to be done every time the plugin is updated by the vendor), I would focus on the class of the white ‘X’ itself. Inspecting your page, it seems to be .sl-close. Well, you say that didn’t work.
Have you tried playing with the jQuery toggle() function? It alternates between hide() and show() depending on the state of the element.
The last thing I might suggest is seeing if you can reduce the size of the lightbox by about 5%, making it so it doesn’t overlap with your menu in the first place.
Related Posts:
- force enqueue script to be first in order of prominence
- Editor not displaying dynamically after clicking on the button
- How to fetch serialized data from wordpress options
- How to load plugin before the wordpress jquery?
- Add jQuery to WordPress page
- Why is my ajax call refreshing the page?
- How do I use WordPress PHP functions in my Javascript code?
- Disable wordpress from including jQuery in the head section
- What’s the point of using WordPress’s built in admin-ajax.php?
- Admin-ajax.php is dying “0” without processing function
- Plugin jQuery version VS Theme jQuery version: search for best practice
- Adding a jquery script to plugin contact form 7
- jQuery function didn’t work in my plugin
- how to include a simple jquery file into a wordpress plugin
- Add get_option to jquery
- Calling JavaScript file with Custom Plugin
- JQuery not working in my plugin [closed]
- Notepad sticky plugin
- Loading jQuery UI in the head
- How can I implement an Add to Collection function on my Image Gallery to be downloaded later?
- Form isn’t inserting data into database with ajax plugin
- custom changes removed after plugin update
- Error with Image Slide plug-in/ s3slider in WP
- Is there a way to set the default active tab on Post UI Tab pluggin?
- Need to change url paramenter of share product pintrest [closed]
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- jQuery for custom plugin not working with Divi theme
- Redux Framework: Page freezes on typing in Editor
- How can I inject options into an select tag inside the widget form?
- How to prevent plugins from loading jQuery
- Loading a purchased jquery plugin in a wordpress theme
- Post Comments with Ajax in WordPress
- Create shortcode to echo javascript
- Integrating jQuery Datatables with Editor into wordpress admin
- how to insert data in wordpress table usnig jquery ajax
- Stop WordPress processing Javascript as text
- How does one include the JQuery UI plugin to wordpress and enque it correctly in a plugin form?
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- How to best create a jQuery Slider to display a native wordpress gallery?
- Creating a widget and missing jQuery
- JQuery needs to be defined in , but Gravity Forms is defining it in the
- Why do I get jQuery reference error / undefined when changing name of plugin file?
- Custom meta box with jQuery.sortable custom post type list
- How to prevent tabs from opening all at once
- Load CSS files in header of Bones theme?
- Separate jQuery for Individual Comments?
- FancyBox JS stopped working on multiple sites. Custom plugin responsible. Urgent help needed
- Portfolio Slideshow Sliders Behaving Oddly When in jQuery Ui Tabs
- jQuery(‘#news-ticker’).cycle is not a function
- JS Plugin not executing the js correctly. Trying to make all internal links scroll smoothly
- Call javascript functions from each page
- Javascript from Easy-Fancybox place into footer
- WordPress plugin isn’t loading completely
- jQuery slider widget similar to cnet.com
- Problems with jQuery and is_admin()
- FacetWP breaks jQuery events
- Jquery POST Ajax Return null data in wordpress
- WordPress jQuery Post – Amending Variable Value Within Function Command
- Overriding inline !important CSS with Javscript code snippet with media query
- WP Ajax DB issues
- Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress
- Ajax Call not Working in Plugin
- jQuery Ajax not loading page with ACF fields
- Mixed content error after adding SSL certificate
- update_post_meta is not working for me when I use e.preventDefault for update button
- Website always load twice on start
- Hide button after form submit and save state to localstorage
- jQuery works instead of $
- checkout stripe with plugin contact form
- Uncaught TypeError: Cannot read property ‘cycle’ of undefined
- myStickymenu hide on scroll up to certain Y values
- How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?
- jquery plugin won’t fire when hamburger class element clicked
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Overwriting Plugin’s Ajax callback function from theme
- Help with customising love it plugin (use within foreach)
- Can’t find variable is_single in my jQuery plugin
- Specific plugin script not working on subdomain
- Not getting result using ajax on wordpress
- Theme Load Error
- How to Add Jquery FullCalendar in wp plugin in admin
- Plugin program: JQuery not working in this plugin
- AJAX doesn’t pass variables to the php function in the plugin
- Ajax, jQuery and WordPress
- Hyperlink to execute PHP
- How to get site homepage from plugin?
- jQuery loaded in wrong order for non-admin page views only
- Trying to override/intercept a PhotoMosaic gallery link in WordPress using jQuery
- PHP and Jquery pass value from form. Update function on DataBase
- WordPress plugin ajax post parameter
- Plugin use of ajax/jquery depending dropdown
- How do I output user_registered time in my correct timezone?
- Ajax in Plugins: returns the whole page
- Shortcode return is printing a 1 afterward
- Load css classes after using ajax calls
- How to resolve these findings from security audit
- Integrating WordPress Content into a jQuery Slider
- Animate like Stack exchange frequently asked questions [closed]
- Change page content based on dropdown selection
- Ajax response from Media Selection does not update ALL information more than once