get styles based on version number not time stamp

This commit is contained in:
jorge 2023-01-26 16:16:00 +01:00
parent 040106fef1
commit a9064949a6
1 changed files with 2 additions and 2 deletions

View File

@ -128,10 +128,10 @@ require get_template_directory() . '/inc/widgets-register.php';
* Enqueue scripts and styles. * Enqueue scripts and styles.
*/ */
function ofisuport_scripts() { 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 //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('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_style_add_data( 'ofisuport-style', 'rtl', 'replace' );
wp_enqueue_script( 'ofisuport-navigation', get_template_directory_uri() . '/js/navigation.js', array(), _S_VERSION, true ); wp_enqueue_script( 'ofisuport-navigation', get_template_directory_uri() . '/js/navigation.js', array(), _S_VERSION, true );