'f2f1ef', 'default-image' => '', 'wp-head-callback' => 'hexa_custom_background_cb' ); return $args; } add_filter( 'hexa_custom_background_args', 'circa_custom_background_args' ); /** * Register Google Font */ function circa_google_fonts() { /* translators: If there are characters in your language that are not supported by Gabriela, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Gabriela font: on or off', 'circa' ) ) { wp_register_style( 'circa-gabriela', "https://fonts.googleapis.com/css?family=Gabriela&subset=latin,latin-ext" ); } /* translators: If there are characters in your language that are not supported by Lato, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Lato font: on or off', 'circa' ) ) { wp_register_style( 'circa-lato', "https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic&subset=latin,latin-ext" ); } } add_action( 'init', 'circa_google_fonts' ); /** * Enqueue Google Fonts for custom headers */ function circa_admin_scripts( $hook_suffix ) { if ( 'appearance_page_custom-header' != $hook_suffix ) return; wp_enqueue_style( 'circa-gabriela' ); wp_enqueue_style( 'circa-lato' ); wp_dequeue_style( 'hexa-source-sans-pro' ); } add_action( 'admin_enqueue_scripts', 'circa_admin_scripts' ); /** * Enqueue scripts and styles. */ function circa_scripts() { wp_enqueue_style( 'circa-gabriela' ); wp_enqueue_style( 'circa-lato' ); wp_dequeue_style( 'hexa-source-sans-pro' ); wp_enqueue_style( 'circa-parent-style', get_template_directory_uri() . '/style.css' ); } add_action( 'wp_enqueue_scripts', 'circa_scripts' ); /* * Override parent theme's header setup and styling */ function circa_header_args( $args ) { $args = array( 'default-image' => '', 'default-text-color' => 'aec26b', 'width' => 2000, 'height' => 200, 'flex-height' => true, 'flex-width' => true, 'wp-head-callback' => 'hexa_header_style', 'admin-head-callback' => 'circa_admin_header_style', 'admin-preview-callback' => 'hexa_admin_header_image', ); return $args; } add_filter( 'hexa_custom_header_args', 'circa_header_args' ); function circa_admin_header_style() { ?>