the answer for all question about Oxygen Builder plugin and WordPress

I’m using oxyCloseModal() to close a modal inside the function shown below. When



I’m using oxyCloseModal() to close a modal inside the function shown below. When the button is clicked, the content behind the modal flashes. See the screen recording or visit https://cjboats-staging.deatonwebdesign.dev/ from your cell phone. Any ideas on how to fix it?

Thanks in advance for any advice.

—- code —-

let mobileMenuOpen = false

jQuery( document ).ready( function() {
if( typeof oxyCloseModal !== ‘undefined’ ) {
oxyCloseModal();
}
jQuery(‘#theMobileDropdownBtn’).click(() => {
mobileMenuOpen = !mobileMenuOpen
if (!mobileMenuOpen) oxyCloseModal()
})
} )




Source

Leave A Reply

Your email address will not be published.

Oxyrealm Docs