Guest User

Link to css and js worpdress

a guest
Feb 5th, 2017
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.00 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. function bs_4_theme_styles() {
  5.  
  6.   wp_enqueue_style( 'bootstrap_css', get_template_directory_uri()  . '/css/creative.min.css' );
  7.  
  8.   wp_enqueue_style( 'style_css', get_template_directory_uri() . '/style.css' );
  9.  
  10. }
  11.  
  12. add_action ('wp_enqueue_scripts', 'bs_4_theme_styles');
  13.  
  14. function bs_4_theme_js() {
  15.    
  16.    
  17. wp_enqueue_script( 'bootstrap_js' , get_template_directory_uri() . '/vendor/bootstrap/js/bootstrap.min.js' , array ('jquery') , '' , true);
  18.  
  19.  
  20.  
  21. wp_enqueue_script( 'bootstrap_js' , get_template_directory_uri() . 'https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js' , array ('jquery') , '' , true);
  22. wp_enqueue_script( 'bootstrap_js' , get_template_directory_uri() . '/vendor/scrollreveal/scrollreveal.min.js' , array ('jquery') , '' , true) ;
  23. wp_enqueue_script( 'bootstrap_js' , get_template_directory_uri() . '/vendor/magnific-popup/jquery.magnific-popup.min.js' , array ('jquery') , '' , true) ;
  24.  
  25.  
  26.  
  27. add_action ('wp_enqueue_scripts' , 'bs_4_theme_js');
  28.  
  29. }
  30. ?>
Advertisement
Add Comment
Please, Sign In to add comment