Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Why doesn’t the logo use a regular link? 
 
Jeroen Coumans
Jr. Member
 
Total Posts:  3
Joined:  2008-09-25
 

Hi,

I’m using the blank theme to develop a custom theme. I noticed that the markup for the logo is as follows:

<h1 id="logo" title="<?php echo $this->getLogoAlt() ?>" onclick="location.href='<?php echo $this->getUrl('') ?>'" style="background-image:url(<?php echo $this->getLogoSrc() ?>);">Magento Open Source eCommerce</h1>

Why does it use Javascript to link to the homepage, instead of a regular link? I know I can easily change it, but I’m trying to understand the rationale behind it (if any grin)

--
Jeroen Coumans

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top