Download & Extend

Site logo does not link to first page

Project:Barlow
Version:6.x-1.0
Component:Code
Category:feature request
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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?

Comments

#1

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!

#2

Status:needs review» reviewed & tested by the community

Here's something similar with in a patch.

AttachmentSize
415486.patch 876 bytes

#3

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!

#4

Status:reviewed & tested by the community» fixed

patch corrected and committed

#5

Status:fixed» closed (fixed)

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