• Hi! I have created popups in the Bio section of the About page, so when you click Read Name, the popup displays. That is working fine, but I have a button and an external link within the popup and neither is working. Does this popup allow links and buttons to work within it?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hjensen244

    (@hjensen244)

    I am just checking in to see if there is a fix for this. I have tried everything I can think of and looked through your threads. I can’t imagine why a simple link or button won’t work inside the popup.

    @hjensen244 we’ve already discussed / solved this in the FB thread, but I’m just reposting the solution here for the benefit of anyone else encountering the issue…

    “A javascript event handler has been added to the site (presumably by the popup plugin) to prevent clicks on the popup section, e.g.:

    jQuery(document).ready(function( $ ) {
    $(document).on('click', '.popup', function(event){
    event.preventDefault();
    });
    });

    This is preventing the buttons from being clickable. In the browser console I can fix this by removing the event handler with:

    jQuery(document).off('click', '.popup');

    So, I think you should be able to fix the issue by adding this into “Divi > Theme Options > Integrations > Add code to the body”:

    jQuery(document).ready(function($) {
    setTimeout(function() {
    $(document).off('click', '.popup');
    }, 0);
    });

    I’m not exactly sure why clicks were being prevented on the popups. I can’t see any negative consequences to removing the handler – everything seems to work correctly without it. But be sure to test that the popups are working to your liking after adding the fix.”

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.