We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New way to add custom header image and conditional check.
header.php
<?php $header = get_header_image(); ?> <?php if ( $header ) : ?> <div id="header-image"> <a href="<?php echo home_url() ?>"> <img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt=""> </a> </div> <?php endif; ?>
functions.php
$defaults = array( 'default-image' => '', 'random-default' => false, 'width' => 0, 'height' => 0, 'flex-height' => false, 'flex-width' => false, 'default-text-color' => '', 'header-text' => true, 'uploads' => true, 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '', ); add_theme_support( 'custom-header', $defaults );
The text was updated successfully, but these errors were encountered:
No branches or pull requests
New way to add custom header image and conditional check.
header.php
functions.php
The text was updated successfully, but these errors were encountered: