Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( ! function_exists( 'untitled_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.
- *
- * @since untitled 1.0
- */
- function untitled_setup() {
- /**
- * Make theme available for translation
- * Translations can be filed in the /languages/ directory
- * If you're building a theme based on untitled, use a find and replace
- * to change 'untitled' to the name of your theme in all the template files
- */
- load_theme_textdomain( 'untitled', get_template_directory() . '/languages' );
- /**
- * Add default posts and comments RSS feed links to head
- */
- add_theme_support( 'automatic-feed-links' );
- /**
- * Enable support for Post Thumbnails
- */
- add_theme_support( 'post-thumbnails', array( 'post', 'page' ) );
- set_post_thumbnail_size( 150, 150 );
- add_image_size( 'slider-img', 1440, 400, true );
- add_image_size( 'content-img', 300, 168, true );
- add_image_size( 'thumbnail-img', 62, 62, true );
- add_image_size( 'feat-img', 1000 );
- /**
- * This theme uses wp_nav_menu() in one location.
- */
- register_nav_menus( array(
- 'primary' => __( 'Primary Menu', 'untitled' ),
- ) );
- /**
- * Enable support for Post Formats
- */
- add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) );
- }
- endif; // untitled_setup
- add_action( 'after_setup_theme', 'untitled_setup' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement