Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*-----------------------------------------------------------------------------------*/
- /* Action after theme setup
- /*-----------------------------------------------------------------------------------*/
- function theme_setup () {
- // load textaomain
- load_theme_textdomain( 'themeweave', get_template_directory() . '/languages' );
- // add required support
- add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ));
- add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat' ));
- add_theme_support( 'custom-background' );
- add_theme_support( 'automatic-feed-links' );
- add_theme_support( 'post-thumbnails' );
- set_post_thumbnail_size( 900, 450, true );
- // create nav menu
- register_nav_menus( array(
- 'primary' => __( 'Top Menu', 'themeweave' ),
- 'secondary' => __( 'Second Menu', 'themeweave' ),
- ));
- // add style to editor
- add_editor_style( array( 'assets/css/editor-style.min.css', '//fonts.googleapis.com/css?family=Lato:400,300,700,400italic' ) );
- }
- add_action( 'after_setup_theme', 'theme_setup' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement