in add_theme_support( 'title-tag' ); // add RSS feed links in add_theme_support( 'automatic-feed-links' ); // featured image support add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 1000, 1000 ); // enable html5 features add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption', ) ); // custom background image support add_theme_support( 'custom-background' , array( 'default-color' => 'dce2e5', 'default-image' => '%1$s/images/sun-grass.jpg', 'default-repeat' => 'no-repeat', 'default-position-x' => 'center', 'default-position-y' => 'center', 'default-attachment' => 'fixed', ) ); // custom logo support add_theme_support( 'custom-logo', array( 'height' => 160, 'width' => 460, 'flex-height' => true, 'flex-width' => true, 'header-text' => array( 'site-title', 'site-description' ), ) ); // navigation menu register_nav_menus( array( 'main_menu' => __( 'Main Menu', 'arix' ) ) ); // post editor css add_editor_style(); } add_action( 'after_setup_theme', 'arix_functions' ); // widget areas function arix_widgets() { register_sidebar( array( 'name' => __( 'Sidebar 1', 'arix' ), 'id' => 'sidebar', 'before_widget' => '
', 'after_widget' => "
\n", 'before_title' => '

', 'after_title' => "

\n", ) ); register_sidebar( array( 'name' => __( 'Footer', 'arix' ), 'id' => 'footer', 'before_widget' => '\n", 'before_title' => '

', 'after_title' => "

\n", ) ); } add_action( 'widgets_init', 'arix_widgets' ); // content width if ( ! isset( $content_width ) ) { $content_width = 1000; } // numeric page nav function arix_page_nav() { global $wp_query; $bignum = 999999999; if ( $wp_query->max_num_pages <= 1 ) return; echo ''; } // visual editor font function arix_add_editor_font() { add_editor_style( '//fonts.googleapis.com/css?family=Dosis:300,500' ); } add_action( 'after_setup_theme', 'arix_add_editor_font' ); // visual editor style function arix_editor_styles() { add_editor_style(); } add_action( 'admin_init', 'arix_editor_styles' ); ?>