From e8c37416ec0977c94f388b6104242464ad1bd622 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Thu, 1 Feb 2018 13:52:20 -0500 Subject: [PATCH] Advanced Ads Slideshow set to infinite scroll Slider was scrolling back from the right to the first ad after reaching the last one. Added a setting in functions file to set that behaviour to be infinite instead. --- functions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/functions.php b/functions.php index 24d6022..72c1c4b 100644 --- a/functions.php +++ b/functions.php @@ -328,3 +328,10 @@ require get_template_directory() . '/inc/custom.php'; * Royal Slider Custom Settings. */ require get_template_directory() . '/inc/royalslider.php'; + + +function restore_slider_behavior( $settings ) { + $settings['infinite'] = 'true'; + return $settings; +} +add_filter( 'advanced-ads-slider-settings', 'restore_slider_behavior' ); \ No newline at end of file -- 2.17.1