In your header template file (
catalog/view/theme/default/template/common/header.tpl), at lines 70 to 87, you will find the following block of code:
Code: Select all
<header>
<div class="container">
<div class="row">
<div class="col-sm-4">
<div id="logo">
<?php if ($logo) { ?>
<a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive" /></a>
<?php } else { ?>
<h1><a href="<?php echo $home; ?>"><?php echo $name; ?></a></h1>
<?php } ?>
</div>
</div>
<div class="col-sm-5"><?php echo $search; ?>
</div>
<div class="col-sm-3"><?php echo $cart; ?></div>
</div>
</div>
</header>
Replace with:
Code: Select all
<header>
<div class="container">
<div class="row" id="logo" style="background-image: url('<?php echo $logo; ?>');">
<div class="col-sm-4"></div>
<div class="col-sm-5"><?php echo $search; ?></div>
<div class="col-sm-3"><?php echo $cart; ?></div>
</div>
</div>
</header>
This will provide the div with a background image.
Then, in your stylesheet (
catalog/view/theme/default/stylesheet/stylesheet.css) at lines 125 to 127, find:
And, replace with:
Code: Select all
#logo {
margin: 0 0 10px 0;
padding-top: 20px;
min-height: 120px;
background-repeat: no-repeat;
}
The padding in the top will put a bit of space above the search box and shopping cart so that they are not right at the top of the background image. Set the min-height value to the height of your logo.
There may be some "excess" space between the logo background and the nav-bar above it. To remove this space, change the margin for the #top definition in the stylesheet. At lines 80 to 86, you'll find:
Code: Select all
#top {
background-color: #EEEEEE;
border-bottom: 1px solid #e2e2e2;
padding: 4px 0px 3px 0;
margin: 0 0 20px 0;
min-height: 40px;
}
Change:
to: