Created
March 20, 2019 14:01
-
-
Save mhmohon/78216e1d3bf95194db9e76f1277d1a13 to your computer and use it in GitHub Desktop.
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 | |
function awesome_script_enqueue() | |
{ | |
wp_enqueue_style('customstyle', get_template_directory_uri(). '/css/awesome.css', array(), '1.0.0', 'all'); | |
wp_enqueue_script('custom.js', get_template_directory_uri() . '/js/awesome.js', array(), '1.0.0', true); | |
wp_enqueue_style('custom-css', get_stylesheet_directory_uri(). '/assets/css/custom.css', ['custom-css'], time(), 'all'); | |
} | |
add_action('wp_enqueue_scripts', 'awesome_script_enqueue', 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment