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' ); add_theme_support( 'custom-logo', array( 'height' => 40, 'width' => 350, 'flex-width' => true, ) ); } /* end bigpix theme support */ /********************* RELATED POSTS FUNCTION *********************/ // Related Posts Function (call using BIGPIX_related_posts(); ) function BIGPIX_related_posts() { echo '