Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*this is for init default jquery*/
- function various_theme_jquery() {
- wp_enqueue_script('jquery');
- }
- add_action('init', 'various_theme_jquery');
- /*this is to enqueue js and css*/
- function rt_foundation_styles() {
- global $wp_styles;
- /*
- * Adds JavaScript to pages with the comment form to support
- * sites with threaded comments (when in use).
- */
- if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
- wp_enqueue_script( 'comment-reply' );
- /* Registering Styles */
- wp_register_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css', array(), '1', 'all' );
- wp_register_style( 'blogpost', get_template_directory_uri() . '/css/blog-post.css', array(), '1', 'all' );
- /* Enqueue Styles */
- wp_enqueue_style( 'bootstrap', get_stylesheet_uri(), array(), '1', 'all' );
- wp_enqueue_style( 'blogpost', get_stylesheet_uri(), array(), '1', 'all' );
- // Loads our main stylesheet.
- wp_enqueue_style( 'test-main-style', get_stylesheet_uri() );
- // Loads our main stylesheet.
- wp_enqueue_style( 'rt_foundation_styles', get_stylesheet_uri() );
- // Loads the Internet Explorer specific stylesheet.
- wp_enqueue_script( 'jquery-masonry', array( 'jquery' ) );
Add Comment
Please, Sign In to add comment