Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( ! function_exists( 'expound_setup' ) ) :
- /**
- * Sets up theme defaults and registers support for various WordPress features.
- *
- * Note that this function is hooked into the after_setup_theme hook, which runs
- * before the init hook. The init hook is too late for some features, such as indicating
- * support post thumbnails.
- */
- function expound_setup() {
- /**
- * Custom template tags for this theme.
- */
- require( get_template_directory() . '/inc/template-tags.php' );
- /**
- * Custom functions that act independently of the theme templates
- */
- require( get_template_directory() . '/inc/extras.php' );
- /**
- * Customizer additions
- */
- require( get_template_directory() . '/inc/customizer.php' );
- /**
- * Make theme available for translation
- * Translations can be filed in the /languages/ directory
- * If you're building a theme based on Mag, use a find and replace
- * to change 'expound' to the name of your theme in all the template files
- */
- load_theme_textdomain( 'expound', get_template_directory() . '/languages' );
- /**
- * Add default posts and comments RSS feed links to head
- */
- add_theme_support( 'automatic-feed-links' );
- /**
- * Editor styles for the win
- */
- add_editor_style( 'css/editor-style.css' );
- /**
- * Enable support for Post Thumbnails on posts and pages
- *
- * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
- */
- add_theme_support( 'post-thumbnails' );
- set_post_thumbnail_size( 220, 126, true );
- add_image_size( 'expound-featured', 460, 260, true );
- add_image_size( 'expound-mini', 50, 50, true );
- /**
- * This theme uses wp_nav_menu() in one location.
- */
- register_nav_menus( array(
- 'primary' => __( 'Primary Menu', 'expound' ),
- 'social' => __( 'Social Menu', 'expound' ),
- ) );
- /**
- * Enable support for Post Formats
- */
- add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );
- /**
- * Enable support for Custom Background
- */
- add_theme_support( 'custom-background', array(
- 'default-color' => '333333',
- ) );
- }
- endif; // expound_setup
- add_action( 'after_setup_theme', 'expound_setup' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement