Posted by StevenK on March 27, 2009 at 11:59am
| 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
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
Here's something similar with in a patch.
#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
patch corrected and committed
#5
Automatically closed -- issue fixed for 2 weeks with no activity.