Last active
March 29, 2017 10:45
-
-
Save pramod1988/943c081956ab640539d3e5b2296df68e to your computer and use it in GitHub Desktop.
Wordpress Child theme add css and js
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
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); | |
function theme_enqueue_styles() { | |
// Get the theme data | |
$the_theme = wp_get_theme(); | |
wp_enqueue_style( 'child-understrap-styles', get_stylesheet_directory_uri() . '/css/child-theme.min.css', array(), $the_theme->get( 'Version' ) ); | |
wp_enqueue_script( 'child-understrap-scripts', get_stylesheet_directory_uri() . '/js/child-theme.min.js', array(), $the_theme->get( 'Version' ), true ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment