mod in function to reload styles if modified
This commit is contained in:
parent
d399ad6cd8
commit
4a52a13fdb
|
@ -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' );
|
||||
|
|
Loading…
Reference in New Issue