Opening Slider - autoplay

Hey guys-
On corporatelive.com, it opens on a blueprint of a stage, and another image is triggered via mouse scroll. How can we make it automatically change a couple of seconds into site visit?

  • Kasia Swiderska
    • Support nomad

    Hello Dmitriy,

    On corporatelive.com, it opens on a blueprint of a stage, and another image is triggered via mouse scroll.

    I don't think it's working now on your site - you have some scripts missing - and I think that is W3 Total Cache issue.

    How can we make it automatically change a couple of seconds into site visit?

    You will need add script like that to your site

    <?php 
    
    add_action('wp_footer', 'wpmudev_changebgontime' );
    
    function wpmudev_changebgontime(){
    	?>
    <script type="text/javascript">
    	jQuery( document ).ready(function() {
    
      	setTimeout(function(){
     		jQuery('.img-bg').css('background-image','url(pathtoyoueimage/example.jpg)')
    }, 2000);
    
    });
    </script>
    	<?php
    }

    where pathtoyoueimage/example.jpg should be your image with whole path and 2000 miliseconds should be changed to different value that will fit your needs.
    You can add this to your theme functions.php file or add it as MU (Must Use) plugin http://premium.wpmudev.org/manuals/wpmu-manual-2/using-mu-plugins/

    Let me know if you have more questions

    kind regards,
    Kasia

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.