Last active
July 24, 2019 14:08
-
-
Save mennwebs/61f2f63f4137fe6da5a06e8353454740 to your computer and use it in GitHub Desktop.
Auto CSS version for child theme.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Enqueue scripts and styles. | |
*/ | |
function fruit_scripts() { | |
wp_dequeue_style( 'seed-style'); | |
wp_enqueue_style( 'fruit-css', get_stylesheet_directory_uri() . '/style.css', array(), filemtime( get_stylesheet_directory() . '/style.css' ) ); | |
wp_enqueue_script( 'fruit-js', get_stylesheet_directory_uri() . '/js/main.js', array(), '2017-1', true ); | |
} | |
add_action( 'wp_enqueue_scripts', 'fruit_scripts' , 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment