__('Primary Navigation', 'backyard'), )); add_theme_support('title-tag'); add_theme_support('post-thumbnails'); add_image_size( 'backyard-widget-thumb', 80, 50, true ); add_image_size('backyard-related-post', 230, 166, true); add_image_size('backyard-featured-categories', 263, 190, true ); add_image_size('backyard-popular-thumb', 256, 151, true ); add_image_size('backyard-post-thumb', 750, 387, true ); add_image_size('backyard-full-grid', 550, 350, true ); add_theme_support( 'automatic-feed-links' ); add_editor_style(array('editor-style.css', backyard_google_web_fonts_url())); add_theme_support( 'html5', array( 'gallery', 'caption' ) ); $args = array( 'default-text-color' => 'e1a232', 'default-image' => '', 'height' => 250, 'width' => 1060, 'max-width' => 2000, 'flex-height' => true, 'flex-width' => true, 'random-default' => false, 'wp-head-callback' =>'backyard_header_style', ); add_theme_support('custom-logo', array( 'height' => 100, 'width' => 300, 'flex-width' => true, 'flex-height' => true, )); add_theme_support('custom-header', apply_filters('backyard_custom_header_args',$args)); add_theme_support( 'custom-background', $args); } add_action('after_setup_theme', 'backyard_setup'); //* Add custom body class to the head add_filter('body_class', 'backyard_sp_body_class'); function backyard_sp_body_class( $classes ) { if (!is_front_page() || is_home()) $classes[] = 'inner-page'; return $classes; } /*Start Content Limit Function*/ /*End Content Limit Function*/ /*Start Search Form Hook*/ function backyard_search_form($form) { $form = ''; return $form; } add_filter( 'get_search_form', 'backyard_search_form'); /*End Search Form Hook*/ if(!function_exists('backyard_comment_nav')) : function backyard_comment_nav() { // Are there comments to navigate through? if ( get_comment_pages_count() > 1 && get_option('page_comments') ) : ?>