Categories

Featured templates

Magento. How to change logo URL

Daniel Morales February 9, 2015
Rating: 3.0/5. From 2 votes.
Please wait...

This tutorial will show you how to change logo URL in your Magento template.

Magento. How to change logo URL

By default, the logo displayed in the header of your Magento site has a link to the homepage of the site.

Magento_How_to_change_logo_URL_1

You can change that link. It can be a link to another page on the same site or it can be an external URL.

You can achieve this by modifying the file header.phtml of the theme that you use.

  1. Open app/design/frontend/default/themeXXX/template/page/html/header.phtml file.

  2. Find the code below:

    <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>
  3. In that code you need to edit the part:

    <a href="<?php echo $this->getUrl('') ?>"
  4. Delete

    <?php echo $this->getUrl('') ?>

    and between the quotation marks type the full URL address. E.g:

    <a href="http://www.google.com"
  5. Clear Magento and browser cache after making changes.

Feel free to check the detailed video tutorial below:

Magento. How to change logo URL

Magento Templates
This entry was posted in Magento Tutorials and tagged logo, Magento, url. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket