Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

257
Views
Close modal on button click Elementor

I hope you are having a nice day. I am working with the following menu:

enter image description here

The site with which I am working is a Single Page, I need that when clicking any of the buttons that work as anchors to different sections (referenced by ID) they also close this popup. Any idea how to do it? I can work perfectly with JS and jQuery, I know these technologies a lot.

Thanks for reading and giving me your time. I await your responses. Greetings.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I have this working for me:

  • give the buttons on your popup an additional class of 'close-popup'

  • add an HMTL widget to your popup with the following

    <script> 
      jQuery( document ).ready( function( $ ) {
      $( document ).on( 'click', '.close-popup', function( event ) {
          elementorProFrontend.modules.popup.closePopup( {}, event );
       } );
     } );
    </script>
    

I'd like to be able to claim the credit for this, but it goes to shilo-ey

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!