__( 'Primary Menu', 'delighted' ), ) ); /** * Setup the WordPress core custom background feature. */ add_theme_support( 'custom-background', apply_filters( 'delighted_custom_background_args', array( 'default-color' => 'e2e2e2', 'default-image' => '', ) ) ); /** * Add post editor style. */ add_editor_style( 'style-editor.css' ); } } // endif delighted_setup /** * Register widgetized area and update sidebar with default widgets * * @since 1.0 */ add_action( 'widgets_init', 'delighted_widgets_init' ); function delighted_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'delighted' ), 'id' => 'sidebar', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } /** * Enqueue scripts and styles * * @since 1.0 */ add_action( 'wp_enqueue_scripts', 'delighted_scripts' ); function delighted_scripts() { wp_enqueue_style( 'delighted-style', get_stylesheet_uri() ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); if ( is_singular() && wp_attachment_is_image() ) wp_enqueue_script( 'delighted-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' ); wp_register_style( 'bitter-lora', 'http://fonts.googleapis.com/css?family=Archivo+Narrow:400,700|Lora:400,700', false, '1.0', 'all' ); wp_enqueue_style( 'bitter-lora'); } /** * Implement helpful helper functions * * @since 1.0 */ require get_template_directory() . '/inc/helpers.php'; /** * Implement the Custom Header feature * * @since 1.0 */ require get_template_directory() . '/inc/custom-header.php'; /** * Custom template tags for this theme * * @since 1.0 */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates * * @since 1.0 */ require get_template_directory() . '/inc/extras.php'; /** * Customizer additions * * @since 1.0 */ require get_template_directory() . '/inc/customizer.php';