removing custom image header for logo - closes #223

This commit is contained in:
Ben Word
2012-01-23 10:55:36 -07:00
parent bf8a0f1630
commit 3c9bc21e32
4 changed files with 1 additions and 16 deletions

View File

@@ -47,21 +47,6 @@ function roots_setup() {
// http://codex.wordpress.org/Post_Formats // http://codex.wordpress.org/Post_Formats
// add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat')); // add_theme_support('post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat'));
// http://codex.wordpress.org/Function_Reference/add_custom_image_header
if (!defined('HEADER_TEXTCOLOR')) { define('HEADER_TEXTCOLOR', ''); }
if (!defined('NO_HEADER_TEXT')) { define('NO_HEADER_TEXT', true); }
if (!defined('HEADER_IMAGE')) { define('HEADER_IMAGE', get_template_directory_uri() . '/img/logo.png'); }
if (!defined('HEADER_IMAGE_WIDTH')) { define('HEADER_IMAGE_WIDTH', 300); }
if (!defined('HEADER_IMAGE_HEIGHT')) { define('HEADER_IMAGE_HEIGHT', 75); }
function roots_custom_image_header_site() { }
function roots_custom_image_header_admin() { ?>
<style type="text/css">
.appearance_page_custom-header #headimg { min-height: 0; }
</style>
<?php }
add_custom_image_header('roots_custom_image_header_site', 'roots_custom_image_header_admin');
// http://codex.wordpress.org/Function_Reference/register_nav_menus // http://codex.wordpress.org/Function_Reference/register_nav_menus
register_nav_menus(array( register_nav_menus(array(
'primary_navigation' => __('Primary Navigation', 'roots'), 'primary_navigation' => __('Primary Navigation', 'roots'),

View File

@@ -33,7 +33,7 @@
<div class="container"> <div class="container">
<a id="logo" href="<?php echo home_url(); ?>/"> <a id="logo" href="<?php echo home_url(); ?>/">
<img src="<?php echo get_header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="<?php bloginfo('name'); ?>"> <img src="http://placehold.it/300x75" width="300" height="75" alt="<?php bloginfo('name'); ?>">
</a> </a>
<nav id="nav-main" role="navigation"> <nav id="nav-main" role="navigation">

0
img/.gitignore vendored Normal file
View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 671 B