Magento – ( Static ) Show block only on homepage

Who wants to show only certain blocks on the HOME page of the Home Page so Magento Stores, can do this with a small code snippets. In header.phtml folder app / design / frontend / base / default / template / page / html in the default template is still simple: <?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()…

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…

Magento – Static block installed in the header

Who in the header of Magentoshops would like to have some additional information or other things, this can be done relatively easily. Either by header.phtml file in the folder app / design / frontend /[base or default]/[IhrTemplate]/template / page / html rumgeschrieben is directly or also through the introduction of elements with a static block. For this purpose, the backend CMS > Static blocks…