Title: Automatic trigger
Last modified: March 28, 2020

---

# Automatic trigger

 *  [enigmothy](https://wordpress.org/support/users/enigmothy/)
 * (@enigmothy)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/automatic-trigger/)
 * Is there a way to create an automatic trigger with this plugin, so that when 
   someone accesses the homepage, the popup comes up automatically without clicking
   on a link/button (like 1 second after going to the page)?

Viewing 1 replies (of 1 total)

 *  [Lacko123](https://wordpress.org/support/users/lacko123/)
 * (@lacko123)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/automatic-trigger/#post-12595644)
 * Hi, yes you can. If I remember correctly there is an article on the author’s 
   website. But I can’t find it right now. So I’m showing my own saved script. Displays
   a pop-up window after 5 seconds.
 *     ```
       <script>
       window.setTimeout(function(){ 
           DiviPopup.openPopup('#get-newsletter') 
       }, 5000); 
       </script>
       ```
   
 * Displays a pop-up window after 200 Pixels scrolling.
 *     ```
       <script>
       jQuery(window).on('scroll.popup', function() {
         if (jQuery(window).scrollTop() >= 200) {
           jQuery(window).off('.popup');
           DiviPopup.openPopup('#get-newsletter');
         }
       });
       </script>
       ```
   
 * Put the required script into a code module within the popup section. Instead 
   of (“# get-newsletter”) enter your ID here.

Viewing 1 replies (of 1 total)

The topic ‘Automatic trigger’ is closed to new replies.

 * ![](https://ps.w.org/popups-for-divi/assets/icon-256x256.jpg?rev=2553226)
 * [Popups for Divi](https://wordpress.org/plugins/popups-for-divi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popups-for-divi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popups-for-divi/)
 * [Active Topics](https://wordpress.org/support/plugin/popups-for-divi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popups-for-divi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popups-for-divi/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Lacko123](https://wordpress.org/support/users/lacko123/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/automatic-trigger/#post-12595644)
 * Status: not resolved