widgets['WP_Widget_Recent_Comments'])) { remove_action( 'wp_head', array($wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style') ); } } /********************* SCRIPTS & ENQUEUEING *********************/ // loading modernizr and jquery, and reply script function BIGPIX_scripts_and_styles() { global $wp_styles; // call global $wp_styles variable to add conditional wrapper around ie stylesheet the WordPress way // modernizr (without media query polyfill) wp_enqueue_script( 'BIGPIX-modernizr', get_template_directory_uri() . '/library/js/libs/modernizr.custom.min.js', array(), '2.5.3', false ); wp_enqueue_style( 'BIGPIX-scroll-style', get_template_directory_uri() . '/library/css/jquery.mCustomScrollbar.css', array(), '', 'all' ); wp_enqueue_style( 'BIGPIX-font', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '', 'all' ); // ie-only style sheet wp_enqueue_style( 'BIGPIX-ie-only', get_template_directory_uri() . '/library/css/ie.css', array(), '' ); // register main stylesheet wp_enqueue_style('BIGPIX-raleway-fonts', get_template_directory_uri() . '/fonts/fonts.css'); wp_enqueue_style( 'BIGPIX-stylesheet', get_template_directory_uri() . '/library/css/style.css', array(), '', 'all' ); wp_enqueue_style( 'BIGPIX-main-stylesheet', get_stylesheet_uri(), array(), '', 'all' ); // comment reply script for threaded comments if ( is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script( 'jquery-effects-core '); wp_enqueue_script( 'jquery-effects-slide'); //adding scripts file in the footer wp_enqueue_script( 'BIGPIX-scroll-js', get_template_directory_uri() . '/library/js/jquery.mCustomScrollbar.concat.min.js', array(), '', true); wp_enqueue_script( 'BIGPIX-js', get_template_directory_uri() . '/library/js/scripts.js', array(), '', true ); if ( is_home() || is_front_page() ){ wp_enqueue_script( 'imagesloaded', get_template_directory_uri() . '/library/js/imagesloaded.pkgd.js', array(), '', true); wp_enqueue_script( 'cycle2', get_template_directory_uri() . '/library/js/jquery.cycle2.js', array(), '', true ); wp_enqueue_script( 'cycle2_tile', get_template_directory_uri() . '/library/js/jquery.cycle2.tile.js' , array(), '', true); wp_enqueue_script( 'cycle2_shuffle', get_template_directory_uri() . '/library/js/jquery.cycle2.shuffle.js', array(), '', true ); wp_enqueue_script( 'cycle2_scrollvert', get_template_directory_uri() . '/library/js/jquery.cycle2.scrollVert.js', array(), '', true ); wp_enqueue_script( 'BIGPIX-scripts-home', get_template_directory_uri() . '/library/js/scripts-home.js', array(), '', true ); } $wp_styles->add_data( 'BIGPIX-ie-only', 'conditional', 'lt IE 9' ); // add conditional wrapper around ie stylesheet } /********************* THEME SUPPORT *********************/ // Adding WP 3+ Functions & Theme Support function BIGPIX_theme_support() { // wp thumbnails (sizes handled in functions.php) add_theme_support( 'post-thumbnails' ); add_editor_style(get_template_directory_uri(). '/library/css/editor-style.css'); // default thumb size set_post_thumbnail_size(125, 125, true); // wp custom background (thx to @bransonwerner for update) add_theme_support( 'custom-background', array( 'default-image' => '', // background image default 'default-color' => 'ffffff', // background color default (dont add the #) 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' ) ); // rss thingy add_theme_support('automatic-feed-links'); // to add header image support go here: http://themble.com/support/adding-header-background-image-support/ // adding post format support add_theme_support( 'post-formats', array( 'aside', // title less blurb 'gallery', // gallery of images 'link', // quick link to other site 'image', // an image 'quote', // a quick quote 'status', // a Facebook like status update 'video', // video 'audio', // audio 'chat' // chat transcript ) ); add_theme_support( 'title-tag' ); } /* end bigpix theme support */ if ( ! function_exists( '_wp_render_title_tag' ) ) : function BIGPIX_render_title() { ?> <?php wp_title( '|', true, 'right' ); ?> = 2 || $page >= 2 ): $title .= " {$sep} " . sprintf( __( 'Page %s', 'dbt' ), max( $paged, $page ) ); endif; return $title; } // end better title endif; /********************* RELATED POSTS FUNCTION *********************/ // Related Posts Function (call using BIGPIX_related_posts(); ) function BIGPIX_related_posts() { echo '