Created
January 17, 2018 07:03
-
-
Save hasanm95/7442f9f3edbed19428625acfeeb7c451 to your computer and use it in GitHub Desktop.
Call css and js in plugin file
This file contains hidden or 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
| function site_toolkit_files(){ | |
| wp_enqueue_style('site-toolkit', plugins_url('/assets/css/site-toolkit.css', __FILE__)); | |
| wp_enqueue_style('site-carousel', plugins_url('/assets/css/owl.carousel.css', __FILE__), array(), '2.2.1', 'all'); | |
| wp_enqueue_script('site-carousel', plugins_url('/assets/js/owl.carousel.min.js', __FILE__), array('jquery'), '2.2.1', true); | |
| } | |
| add_action('wp_enqueue_scripts', 'site_toolkit_files'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment