Magento Forum

Move logo from the Header
 
emagine
Member
 
Total Posts:  36
Joined:  2007-12-10
 

Does anyone know how to move the logo and mini search from the header.phtlm page to the left hand column? I have tried moving the actual code to say left.phtml or 2-columns left.phtml, but nothing is coming in. I am assuming something is driving this and I can’t figure out where it is.

The xml pages all call this>html header, but that doesn’t help me either.

The design guide isn’t much help to me either, as it seems a bit out of date.

 
Magento Community Magento Community
Magento Community
Magento Community
 
emagine
Member
 
Total Posts:  36
Joined:  2007-12-10
 

This might be in the wrong forum, now that I am thinking of it. I tried to take the following functions and move them to:

app/code/core/mage/catalog/block/navigation.php

/* edit to try and get logo into the left-hand column */
    
      public function setLogo($logo_src$logo_alt)
    
{
        $this
->setLogoSrc($logo_src);
        
$this->setLogoAlt($logo_alt);
        return 
$this;
   
 
}

    
public function getLogoSrc()
    
{
        
if (empty($this->_data['logo_src'])) {
            $this
->_data['logo_src'Mage::getStoreConfig('design/header/logo_src');
        
}
        
return $this->getSkinUrl($this->_data['logo_src']);
    
}

    
public function getLogoAlt()
    
{
        
if (empty($this->_data['logo_alt'])) {
            $this
->_data['logo_alt'Mage::getStoreConfig('design/header/logo_alt');
        
}
        
return $this->_data['logo_alt'];
    
}
    
/* end edit */

And then I added to the 2column-left.phml file

<h1 id="logo"><a href="<?php echo $this->getUrl('') ?>"><img src="<?php echo $this->getLogoSrc() ?>" alt="<?php echo $this->getLogoAlt() ?>" /></a></h1>
        <
class="no-display"><a href="#main"><strong><?php echo $this->__('Skip to Main Content'?> &raquo;</strong></a></p>
        
<?php echo $this->getChildHtml('topSearch'?>
        
<div class="quick-access">
            
<?php echo $this->getChildHtml('store_language'?>
        
</div>

And in the end I get nothing, well I get something, but nothing dynamic, which is what I need to have. This is the result:

<h1 id="logo"><a href="http://mydomain.com/"><img src="" alt="" /></a></h1>
        <
class="no-display"><a href="#main"><strong>Skip to Main Content &raquo;</strong></a></p>
                <
div class="quick-access">

                    </
div>
                                &
nbsp;
            </
div>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top