How to change the logo and header image to a static block

Last modified by Mark Robinson on Thu, June 24, 2010 17:06
Source|Old Revisions  

If you want a lot of things to the header, images, text, let’s do this:

Create a new block, with name “headerheader” for example

Copy this code to page.xml to header block:

<block type="cms/block" name="headerheader" as="headerheader">
       <action method="setBlockId"><block_id>headerheader</block_id></action>

In the header.phtml-t, change to this code :

<div class="header-top">
        <h1 id="logo"><a href="<?php echo $this->getUrl('') ?>">**//<?php echo $this->getChildHtml('headerheader') ?>//** </a></h1>
        <p class="no-display"><a href="#main"><strong><?php echo $this->__('Skip to Main Content') ?> &raquo;</strong></a></p>

After that, just put <a href=”“> image to headerheader block, and change the css style in boxes.css to the logo, and that’s it.