From a9064949a65e7b171ef54f540cc0c4ca535b24c8 Mon Sep 17 00:00:00 2001 From: jorge-vitrubio Date: Thu, 26 Jan 2023 16:16:00 +0100 Subject: [PATCH] get styles based on version number not time stamp --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 08fbb0f..1d97210 100644 --- a/functions.php +++ b/functions.php @@ -128,10 +128,10 @@ require get_template_directory() . '/inc/widgets-register.php'; * Enqueue scripts and styles. */ function ofisuport_scripts() { - //wp_enqueue_style( 'ofisuport-style', get_stylesheet_uri(), array(), _S_VERSION ); + wp_enqueue_style( 'ofisuport-style', get_stylesheet_uri(), array(), _S_VERSION ); //https://developer.wordpress.org/reference/functions/wp_enqueue_style/#comment-2056 //wp_enqueue_style('main-styles', get_template_directory_uri() . '/css/style.css', array(), filemtime(get_template_directory() . '/css/style.css'), false); - wp_enqueue_style( 'ofisuport-style', get_stylesheet_uri(), array(), filemtime(get_stylesheet_uri() . 'style.css'), false); + //wp_enqueue_style( 'ofisuport-style', get_stylesheet_uri(), array(), filemtime(get_stylesheet_uri() . 'style.css'), false); wp_style_add_data( 'ofisuport-style', 'rtl', 'replace' ); wp_enqueue_script( 'ofisuport-navigation', get_template_directory_uri() . '/js/navigation.js', array(), _S_VERSION, true );