Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save DevShahidul/f21196a53a2d530dc26f24b6ca06468f to your computer and use it in GitHub Desktop.
// Begin Include theme css and js function
function add_theme_css_js(){
// Include css
wp_register_style( 'foonts', ',500,600,700', array(), '1.0', 'all' );
wp_register_style( 'flexslider', get_template_directory_uri() . '/css/flexslider.css', array(), '2.0', 'all' );
wp_register_style( 'stylesheet', get_template_directory_uri() . '/css/style.css', array(), '1.0', 'all' );
// Include js
wp_enqueue_script( "jquery");
wp_enqueue_script( "flexslider-js", get_template_directory_uri()."/scripts/jquery.flexslider.js", array('jquery'), '2.0', false );
wp_enqueue_script( "common-scripts", get_template_directory_uri()."/scripts/common-scripts.js", array('jquery'), '1.0', false );
add_action( 'wp_enqueue_scripts', 'add_theme_css_js' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment