Skip to content

Commit 2eeaa44

Browse files
author
Ariel Jolo
committed
Adding swiper for rotating quotes on the new home page
1 parent c42376e commit 2eeaa44

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

themes/osi/functions.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,3 +631,12 @@ function osi_block_booking_if_phone_filled( bool $result, EM_Booking $em_booking
631631
return $result;
632632
}
633633
add_filter( 'em_booking_validate', 'osi_block_booking_if_phone_filled', 10, 2 );
634+
635+
/**
636+
* Queuing swiper for the new home page rotating quotes
637+
**/
638+
function osi_enqueue_swiper_assets() {
639+
wp_enqueue_style('swiper-css', 'https://unpkg.com/swiper@11/swiper-bundle.min.css');
640+
wp_enqueue_script('swiper-js', 'https://unpkg.com/swiper@11/swiper-bundle.min.js', [], null, true);
641+
}
642+
add_action('wp_enqueue_scripts', 'osi_enqueue_swiper_assets');

0 commit comments

Comments
 (0)