Guest User

Untitled

a guest
Jun 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. <?php
  2. /*this is for init default jquery*/
  3. function various_theme_jquery() {
  4. wp_enqueue_script('jquery');
  5. }
  6. add_action('init', 'various_theme_jquery');
  7.  
  8.  
  9. /*this is to enqueue js and css*/
  10. function rt_foundation_styles() {
  11. global $wp_styles;
  12.  
  13. /*
  14. * Adds JavaScript to pages with the comment form to support
  15. * sites with threaded comments (when in use).
  16. */
  17. if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
  18. wp_enqueue_script( 'comment-reply' );
  19.  
  20.  
  21. /* Registering Styles */
  22.  
  23. wp_register_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '1', 'all' );
  24.  
  25. wp_register_style( 'blogpost', get_template_directory_uri() . '/css/blog-post.css', array(), '1', 'all' );
  26.  
  27. /* Enqueue Styles */
  28.  
  29. wp_enqueue_style( 'bootstrap', get_stylesheet_uri(), array(), '1', 'all' );
  30.  
  31. wp_enqueue_style( 'blogpost', get_stylesheet_uri(), array(), '1', 'all' );
  32.  
  33. // Loads our main stylesheet.
  34. wp_enqueue_style( 'test-main-style', get_stylesheet_uri() );
  35.  
  36. // Loads our main stylesheet.
  37. wp_enqueue_style( 'rt_foundation_styles', get_stylesheet_uri() );
  38.  
  39. // Loads the Internet Explorer specific stylesheet.
  40. wp_enqueue_script( 'jquery-masonry', array( 'jquery' ) );
Add Comment
Please, Sign In to add comment