• Resolved joshhmetal

    (@joshhmetal)


    Hello, i have a popup with a menu anchor link to scroll down the page to a spcific part.

    how can i click the menu anchor link for it to scroll down the page but close the popup on click.

    Thanks

    Josh

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rafik

    (@rafikwp)

    Hello,

    Can you please share your page link so I can check and help you.
    Also, elaborate more I am not able to get your problem.

    Thanks

    Thread Starter joshhmetal

    (@joshhmetal)

    Hello, i am using this on an internal intranet.

    what i am trying to achieve is when a popup is clicked on, it shows text within here,
    i have a menu anchor inside the Popup which linked to halfway down the page.

    when i click on the menu anchor within the Popup, it scrolls down to the relevant part of the page but the popup stays up.

    i would like the popup to close when i click on a <href=#b menu anchor inside the popup.

    Does this help?

    Thanks
    Josh

    Plugin Support Rafik

    (@rafikwp)

    Hello,

    Thanks for the detail.

    You need to add js code for closing popup when clicking on the link.

    Please try this code.

    jQuery(document).on('click', '.paoc-popup-modal a', function(event) {
                Custombox.modal.close();  
    });

    Without checking your site, I can not more help.

    Thread Starter joshhmetal

    (@joshhmetal)

    thank you so much, this solved my issue; for anyone else wondering;
    added a HTML block into the top of my page and added the above script.

    
    <script>
    jQuery(document).on('click', '.paoc-popup-modal a', function(event) {
                Custombox.modal.close();  
    });
    </script>
    
    • This reply was modified 5 years, 2 months ago by joshhmetal.
    Plugin Contributor Ketan Patel

    (@patelketan)

    Hello,

    If you like this plugin please give your important Rate and Review here…

    Thanks,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Popup Close on Menu Anchor Click’ is closed to new replies.