0

Hi

I was searching it for many weeks
I am working on Magento Store, i have 2 domains i want to show different logo on each domain.
In header file, logo is shown by this code

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

i found 1 year old topic here
http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/429391/change-logo-image-based-on-domain#
I dont know how to adjust this code into this existing code. can any one help about it ?

I can change logo img location directly like changing

<img src="<?php echo $this->getLogoSrc() ?>"

to

<img src="http://mydomain.com/logo.png"

Edited by waqas_2: correction

2
Contributors
1
Reply
17
Views
3 Years
Discussion Span
Last Post by Troy III
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.