header image

This commit is contained in:
Mark Moser 2018-07-19 21:03:42 -05:00
parent 21062ca0a8
commit 7e9e6854b4
3 changed files with 15 additions and 8 deletions

View File

@ -1,7 +1,7 @@
<?php <?php
if (function_exists('add_theme_support')) { if (function_exists('add_theme_support')) {
// add_theme_support('menus'); add_theme_support('automatic-feed-links');
add_theme_support('post-thumbnails'); add_theme_support('post-thumbnails');
@ -10,7 +10,16 @@ if (function_exists('add_theme_support')) {
// add_image_size('small', 120, '', true); // add_image_size('small', 120, '', true);
// add_image_size('custom-size', 700, 200, true); // call using the_post_thumbnail('custom-size'); // add_image_size('custom-size', 700, 200, true); // call using the_post_thumbnail('custom-size');
add_theme_support('automatic-feed-links'); $customHeaderArgs = array(
'default-image' => get_template_directory_uri() . '/images/default-header.png',
'width' => 1800,
'height' => 260,
'flex-height' => true,
'flex-width' => true,
'uploads' => true,
'header-text' => true,
);
add_theme_support( 'custom-header', $customHeaderArgs );
} }
function ildi_nav($location='header-menu') { function ildi_nav($location='header-menu') {

View File

@ -1,13 +1,11 @@
<header class="container"> <header class="container">
<div class="logo-banner"> <a class="logo-banner" href="<?php echo home_url(); ?>">
<a href="<?php echo home_url(); ?>"> <img src="<?php header_image(); ?>" alt="<?php echo get_custom_header()->text; ?>">
<img src="<?php echo get_template_directory_uri(); ?>/img/logo.svg" alt="Destination Imaginaiton Illinois">
</a> </a>
</div>
<?php ildi_nav(); ?> <?php ildi_nav(); ?>
<div class="search"></div> <div class="search">search</div>
<?php ildi_nav('social-menu'); ?> <?php ildi_nav('social-menu'); ?>
</header> </header>

BIN
images/default-header.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB