Magento – Header changes although still appears header.phtml

What you may notice a problem and does not make sense right…

There is a file, the head of the shop is defined. In our case, this is the header.phtml folder app / design / frontend / default / vingooo / template / page / html . This is possibly among other things, this code section:

<?php if ($this->getIsHomePage()):?>
<h1 class=”logo”><strong><?php echo $this->getLogoAlt() ?></strong><a href=”<?php echo $this->getUrl(”) ?>” title=”<?php echo $this->getLogoAlt() ?>” class =”logo”><img src =”<?php echo $this->getLogoSrc() ?>” alt =”<?php echo $this->getLogoAlt() ?>” /></a></h1>
<?php else:?>
<a href=”<?php echo $this->getUrl(”) ?>” title=”<?php echo $this->getLogoAlt() ?>” class =”logo”><strong><?php echo $this->getLogoAlt() ?></strong><img src =”<?php echo $this->getLogoSrc() ?>” alt =”<?php echo $this->getLogoAlt() ?>” /></a>
<?php endif?>

What is being said at second glance, pretty much: When “HOME” Page, then part 1, unless, then part 2. So are changes to Part 1 made, the wonder is rather large, when the head changed, once you get to another area of ​​the home while still the same is addressed header.phtml.

So either the if-else remove or install in both parts of the change. So the head is then also.

Used in Magento versions 1.4.1.1 and 1.5.1.0 Comments? Additions? Notes? Gladly!

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

Leave a Reply

Your email address will not be published. Required fields are marked *