diff --git a/themes/osi/functions.php b/themes/osi/functions.php index 9252b39..ebcbdc8 100755 --- a/themes/osi/functions.php +++ b/themes/osi/functions.php @@ -584,3 +584,10 @@ function osi_enqueue_swiper_assets(): void { wp_enqueue_script( 'swiper-js', 'https://unpkg.com/swiper@11/swiper-bundle.min.js', array(), filemtime( untrailingslashit( get_template_directory() ) . '/style.css' ), true ); } add_action( 'wp_enqueue_scripts', 'osi_enqueue_swiper_assets' ); + +/** + * Disable loading separate block styles for the osi theme. + * + * @return bool + */ +add_filter( 'should_load_separate_core_block_assets', '__return_false' );