Categories

Featured templates

Drupal 7.x. How to change logo URL

Ammy Brown February 9, 2015
Rating: 5.0/5. From 1 vote.
Please wait...

This tutorial is going to show you how to change logo URL in Drupal template.

Drupal. How to change logo URL

By default, logo is assigned to your site “Home” page. In order to change its link follow steps below:

  1. Open sites/all/themes/theme###/templates directory on your server (### is your theme number).

  2. Open page.tpl.php file in the text editor.

  3. Modify the following lines:

    <?php if ($logo): ?>
    	<a href="<?php print $front_page; ?>" title="<php print t('Home'); ?>" rel="home" id="logo">
    	<img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" /> </a>
    <?php endif; ?>
  4. Change <?php print $front_page; ?> to the URL address like https://www.google.com.

  5. Save the changes to the file and upload it to your server. Click the logo on the frontpage to check if it is pointed to the URL address you specified.

Feel free to check the detailed video tutorial below:

Drupal. How to change logo URL

Popular Drupal Themes
This entry was posted in Drupal Tutorials and tagged drupal, logo, 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