Last active
August 29, 2015 14:12
-
-
Save mehedicsit/8e64948ad989dafd1fdb to your computer and use it in GitHub Desktop.
wordpress theme development
This file contains hidden or 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