'060606', 'default-image' => get_stylesheet_directory_uri() . '/images/body-bg-2x.png', ); return $args; } add_action( 'forever_custom_background_args', 'everafter_custom_background_args' ); /** * Print additional style for custom background admin page. * * @since Ever After 1.0 */ function everafter_admin_background_style( $hook_suffix ) { if ( 'appearance_page_custom-background' != $hook_suffix ) return; ?> '', 'default-text-color' => '4c4c4b', 'width' => 870, 'height' => 210, 'flex-height' => true, 'flex-width' => true, 'random-default' => false, 'wp-head-callback' => 'everafter_header_style', 'admin-head-callback' => 'everafter_admin_header_style', 'admin-preview-callback' => 'everafter_admin_header_image', ); return $args; } add_filter( 'forever_custom_header_args', 'everafter_custom_header_args', 999 ); if ( ! function_exists( 'everafter_header_style' ) ) : /** * Custom styles for our blog header */ function everafter_header_style() { $header_textcolor = get_header_textcolor(); $header_image = get_header_image(); // If no custom options for text are set, let's bail if ( empty( $header_image ) && '' == $header_textcolor ) return; // If we get this far, we have custom styles. Let's do this. ?>