When clicking on site logo, nothing happens. Usually when clicking on the logo it transfers you to the first page of the site. It is quite frustrating when you try something that you intuitively know that should work and it does not.
Any suggestions/template code or something?

CommentFileSizeAuthor
#2 415486.patch876 bytesanarcat
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DarkAthena’s picture

Status: Active » Needs review

In your "page.tpl.php" file look for the following:

<div id="branding">
<?php if ($logo){ ?>

It should be right around line 18 or so. Right after this paste the following code:

<div id="logo">
<a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home">
<img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo-image" /></a></div>

This will cause the default logo to link to your site's home page.

Good luck!

anarcat’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
876 bytes

Here's something similar with in a patch.

DarkAthena’s picture

Patch code looks good with one minor change that was totally my fault at first.

Instead of:

<a href="<?php print $base_path; ?>"

Use:

<a href="<?php print $front_page; ?>"

Sorry about the goof!

anarcat’s picture

Status: Reviewed & tested by the community » Fixed

patch corrected and committed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.