Created
May 16, 2021 10:30
-
-
Save kadimi/fc1ca101c2827104f96e856d16a745b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Set the carousel autoplay speed to 7 seconds. | |
*/ | |
add_action( 'wp_footer', function () { | |
?><script> | |
jQuery( function ( $ ) { | |
$('.rei-land-carousel').slick( 'slickSetOption', 'autoplaySpeed', 7 * 1000 ); | |
} ); | |
</script><?php | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment