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

191
Views
Elementor Popup need close and do not show again by javascript

I already have code that closes Elementor 2 popup by one button, but can't make save it in cookie sessions to not show a second time when site loading, this is for cookie police popup.

jQuery( document ).ready( function( $ ) {
    $( document ).on( 'click', '.close-popup', function( event ) {
        $( "#elementor-popup-modal-4874 .dialog-close-button" ).click();
        $( "#elementor-popup-modal-4877 .dialog-close-button" ).click();
    } );
} );

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

0

 You can try this
 

    
var subsc_cookie = $.cookie('emailSubcribeModal'); 
     if(subsc_cookie != 'closed'){ 
         $( "#elementor-popup-modal-4874 .dialog-close-button" ).show();
        $( "#elementor-popup-modal-4877 .dialog-close-button" ).show();
     }
   
     $('.close-popup').on('click', function(){
        $( "#elementor-popup-modal-4874 .dialog-close-button" ).hide();
        $( "#elementor-popup-modal-4877 .dialog-close-button" ).hide();
             document.cookie = "emailSubcribeModal=closed;"; 
             setCookie("emailSubcribeModal", "closed", 3 );
     })
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!