Closed (fixed)
Project:
Drupal core
Version:
6.16
Component:
Garland theme
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2010 at 11:04 UTC
Updated:
21 Apr 2010 at 09:34 UTC
As suggested here*, please change line 18 of the file 'themes\garland\page.tpl.php' from:
<div id="header-region" class="clear-block"><?php print $header; ?></div>
to:
<div id="header-region" class="clear-block"><a name="top"></a><?php print $header; ?></div>
This allows users to include a 'Back to Top' link at the bottom of (long) web pages, which visitors can click (instead of vertically scrolling back to the top).
Comments
Comment #1
dman commentedanorexic anchors are bad code.
Why not link to any chosen #id like #header instead? All browsers do that correctly.
Comment #2
not_Dries_Buytaert commented@'dman': ok.
Also, putting this code in the footer does the trick, as well:
<a href="#" title="Back to top">Back to top</a>