[contact-form-7 id="24078" title="Feedback EN"]

Featured templates

Drupal 7.x. How to change logo URL

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