Close Popup after 10 seconds

I would like to close the popup after 10 seconds. Here is the popup I would like to close, it is located on this page.


  • Jude

    Hey John

    Hope all is well with you and welcome to the community !

    This is not possible out of the box because of the way the plugin is built. That said there is a simple hack as described here that you can try that should be able to do this for you.

    Take a look

    function custom_js_scripts(){?>
    	<script type='text/javascript'>
    		var close_after = 3000; // Timeout in milliseconds 1000 ms = 1 second
    			jQuery('.visiblebox #closebox').trigger( "click" );
    <?php }
    add_action('wp_footer', 'custom_js_scripts');

    Insert that into either your theme's functions.php, or you can insert it as a mu-plugin.

    To create an mu-plugin, go to your /wp-content/ folder via FTP, and find the folder called "mu-plugins". If there is no folder with that name, then you'll want to create one. Then, create a file inside that folder, and give the file any name you like (making sure the file as an extension of .php, e.g. example.php) and paste the code in there.

    You don't need to activate that plugin, as it will be always be automatically activated. Please be sure to add a PHP start tag at the beginning of the code if you insert this code as a mu-plugin, like this:


    Thank you for being a WPMU DEV member and have a fantastic day!


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.