did some sniff sniff
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
*
|
||||
* You can add an optional custom header image to header.php like so ...
|
||||
*
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/functionality/custom-headers/
|
||||
*
|
||||
* @package Sophia After Dark
|
||||
@@ -18,15 +17,21 @@
|
||||
* @uses sophia_after_dark_header_style()
|
||||
*/
|
||||
function sophia_after_dark_custom_header_setup() {
|
||||
add_theme_support( 'custom-header', apply_filters( 'sophia_after_dark_custom_header_args', array(
|
||||
'default-image' => '',
|
||||
'default-text-color' => '000000',
|
||||
'width' => 1000,
|
||||
'height' => 250,
|
||||
'flex-height' => true,
|
||||
'flex-width' => true,
|
||||
'wp-head-callback' => 'sophia_after_dark_header_style',
|
||||
) ) );
|
||||
add_theme_support(
|
||||
'custom-header',
|
||||
apply_filters(
|
||||
'sophia_after_dark_custom_header_args',
|
||||
array(
|
||||
'default-image' => '',
|
||||
'default-text-color' => '000000',
|
||||
'width' => 1000,
|
||||
'height' => 250,
|
||||
'flex-height' => true,
|
||||
'flex-width' => true,
|
||||
'wp-head-callback' => 'sophia_after_dark_header_style',
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
add_action( 'after_setup_theme', 'sophia_after_dark_custom_header_setup' );
|
||||
|
||||
@@ -60,8 +65,8 @@ if ( ! function_exists( 'sophia_after_dark_header_style' ) ) :
|
||||
position: absolute;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
}
|
||||
<?php
|
||||
// If the user has set a custom color for the text use that.
|
||||
<?php
|
||||
// If the user has set a custom color for the text use that.
|
||||
else :
|
||||
?>
|
||||
.site-title a,
|
||||
@@ -72,5 +77,5 @@ if ( ! function_exists( 'sophia_after_dark_header_style' ) ) :
|
||||
</style>
|
||||
<?php
|
||||
}
|
||||
|
||||
endif;
|
||||
|
||||
endif;
|
||||
|
||||
Reference in New Issue
Block a user