Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

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

Last modified by Kimura on Thu, June 19, 2008 04:03
Source|Old Revisions  

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

Create a new block, what’s name “headerheader” 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>
</block>    

In the header.phtml-t, change and put 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.

Kimura




 

Popular Wiki Tags  |  View all

 module   routes   resource   list   data accessing   backend   action   mysql4   api   controller   getModel   php   model   custom attributes   eav 

Professional Services from the Magento Team

Professional Installation from the Magento Team

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
50167 users|616 users currently online|102324 forum posts