Created
June 20, 2018 21:12
-
-
Save IamSohaggazi/0c03a03f12ff6e9fdd3f349bcf527404 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment