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