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, 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

Magento Forum

Editing urls in header.phtlm
Jr. Member
Total Posts:  16
Joined:  2009-01-17

I hope anybody can help grin

I just cant figure out what I must do to get the url in header.phtml to show correct.

When I put the “<a href="<?php echo $this->getUrl('Lekestallen-infoside')" Both the link for the image AND the search link (url) is changed. Here is all my header.phtml

<div class="header">
<div class="headerLeft">
<div class="logo"><h1 id="logo"><a href="<?php echo $this->getUrl('') ?>"><img src="<?php echo $this->getLogoSrc() ?>” alt="<?php echo $this

->getLogoAlt() ?>"/></a></h1></div>
<a href="<?php echo $this->getUrl('Lekestallen-infoside') ?>"><img src="<?php echo $this->getSkinUrl
('images/side_logo_promo.gif') ?>” alt="” class="side-logo-promo"/>
<?php echo $this->getChildHtml('topSearch') ?>
<div class="headerRight">

<div class="welcomeMessage"><?php echo $this->getLayout()->getBlock('header')->getWelcome()?></div>
<?php echo $this->getChildHtml('topLinks') ?>
<?php echo $this->getChildHtml('topMenu') ?>

My site is, I want the banner/picture “kundesenter” to go to internal page “Lekestallen-infoside’, but I also want the search to work as it should grin (Now it also link to the same page)

Any help would be most appreciated grin

Best regards

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