get styles based on version number not time stamp
This commit is contained in:
parent
040106fef1
commit
a9064949a6
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue