__( 'Primary Menu', 'adelle' ), ) ); /** * Enable support for Post Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'status', 'chat', 'gallery', 'audio' ) ); /** * Enable support for custom backgrounds */ add_theme_support( 'custom-background', array( 'default-color' => 'ffffff', ) ); } endif; // adelle_setup add_action( 'after_setup_theme', 'adelle_setup' ); /** * Enqueue Google Fonts */ function adelle_fonts() { /* translators: If there are characters in your language that are not supported by Muli, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Muli font: on or off', 'adelle' ) ) wp_register_style( 'adelle-muli', "https://fonts.googleapis.com/css?family=Muli:400,400italic" ); /* translators: If there are characters in your language that are not supported by Montserrat, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Montserrat font: on or off', 'adelle' ) ) wp_register_style( 'adelle-montserrat', "https://fonts.googleapis.com/css?family=Montserrat:400,700" ); /* translators: If there are characters in your language that are not supported by Lora, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Lora font: on or off', 'adelle' ) ) wp_register_style( 'adelle-lora', "https://fonts.googleapis.com/css?family=Lora:400,400italic,700,700italic" ); } add_action( 'init', 'adelle_fonts' ); /** * Enqueue font styles in custom header admin */ function adelle_admin_fonts( $hook_suffix ) { if ( 'appearance_page_custom-header' != $hook_suffix ) return; wp_enqueue_style( 'adelle-muli' ); wp_enqueue_style( 'adelle-montserrat' ); wp_enqueue_style( 'adelle-lora' ); } add_action( 'admin_enqueue_scripts', 'adelle_admin_fonts' ); /** * Register widgetized area and update sidebar with default widgets */ function adelle_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'adelle' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '