diff --git a/library/enqueue-scripts.php b/library/enqueue-scripts.php index c1a934f..8602397 100644 --- a/library/enqueue-scripts.php +++ b/library/enqueue-scripts.php @@ -42,7 +42,9 @@ if ( ! function_exists( 'foundationpress_scripts' ) ) : // Enqueue the main Stylesheet. //wp_enqueue_style( 'main-stylesheet', get_stylesheet_directory_uri() . '/dist/assets/css/' . foundationpress_asset_path( 'app.css' ), array(), '2.10.4', 'all' ); - wp_enqueue_style( 'main-stylesheet', get_stylesheet_directory_uri() . '/dist/assets/css/' . foundationpress_asset_path( 'app.css' ), array(), filemtime(get_stylesheet_directory_uri() . '/dist/assets/css/' . foundationpress_asset_path( 'app.css' )), 'all' ); + // wp_enqueue_style( 'main-stylesheet', get_stylesheet_directory_uri() . '/dist/assets/css/' . foundationpress_asset_path( 'app.css' ), array(), filemtime(get_stylesheet_directory_uri() . '/dist/assets/css/' . foundationpress_asset_path( 'app.css' )), 'all' ); + // https://developer.wordpress.org/reference/functions/wp_enqueue_style/#comment-2056 + wp_enqueue_style( 'main-stylesheet', get_stylesheet_directory_uri() . '/dist/assets/css/' . foundationpress_asset_path( 'app.css' ), array(), filemtime(get_stylesheet_directory_uri() . '/dist/assets/css/' . foundationpress_asset_path( 'app.css' )), false ); // Deregister the jquery version bundled with WordPress. wp_deregister_script( 'jquery' );