for posts and comments. add_theme_support('automatic-feed-links'); // Enable support for Post Thumbnails, and declare the appropriate sizes. add_theme_support('post-thumbnails'); set_post_thumbnail_size( 950, 445, true ); // This theme uses wp_nav_menu() in a single location (top header). register_nav_menus(array( 'primary' => __('Top primary menu', 'wk') )); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support('html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' )); // This theme allows users to set a custom background. add_theme_support( 'custom-background', apply_filters( 'wk_custom_background_args', array( 'default-color' => 'f5f5f5', 'default-image' => '%1$s/images/background.jpg', ) ) ); /* * Enable support for Post Formats. * See http://codex.wordpress.org/Post_Formats */ add_theme_support('post-formats', array( 'image', 'video', 'audio', 'quote', 'link', 'gallery', 'status' )); // This theme uses its own gallery styles. add_filter( 'use_default_gallery_style', '__return_false' ); } endif; //theme setup add_action('after_setup_theme', 'wk_setup'); // Add Theme Customizer functionality. require get_template_directory() . '/inc/customizer.php'; //Include all other func files require_once( dirname(__FILE__) . '/inc/functions/functions.theme.php'); require_once( dirname(__FILE__) . '/inc/functions/functions.seo.php'); require_once( dirname(__FILE__) . '/inc/functions/functions.blog.php'); require_once( dirname(__FILE__) . '/inc/functions/functions.widgets.php'); require_once( dirname(__FILE__) . '/inc/functions/functions.comments.php');