Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. function nomesuafuncao_load_styles() {
  2. if (!is_admin()) {
  3. wp_enqueue_style( 'bootstrap' , get_stylesheet_directory_uri() . '/css/bootstrap.min.css', 'css' , '3.3.5' );
  4. wp_enqueue_style( 'carousel' , get_stylesheet_directory_uri() . '/css/carousel.css' , 'css' , '3.3.5' );
  5. wp_enqueue_script( 'bootstrap' , get_stylesheet_directory_uri() . '/js/bootstrap.min.js' , 'jquery' , '3.3.5' , true );
  6. wp_enqueue_script( 'vendor' , get_stylesheet_directory_uri() . '/js/vendor/holder.min.js' , 'jquery' , '3.3.5' , true );
  7.     }
  8. }
  9. add_action('get_header', 'nomesuafuncao_load_styles');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement