Change record status: 
Project: 
Introduced in branch: 
7.x-3.x
Introduced in version: 
7.x-3.1
Description: 

In previous versions of Zen, the URL for the "skip link" pointed to was hard-coded to "#main-menu" in the html.tpl.php file. But the target of that link may not be in your actual sub-theme if you've turned off the theme's "main menu links" in favor of using a block with menu links.

Zen 7.x-3.1 adds a new theme setting so that site admins and sub-themers can easily alter the HTML ID used by the "skip link".

You can support this new feature of Zen by updating your sub-theme:

  1. If you have overridden the default html.tpl.php in your sub-theme, edit your html.tpl.php and replace this line:
    <a href="#main-menu" class="element-invisible element-focusable"><?php print t('Jump to Navigation'); ?></a>
    

    with this line:

    <a href="#<?php print $jump_link_target; ?>" class="element-invisible element-focusable"><?php print t('Jump to Navigation'); ?></a>
    
  2. Edit your sub-theme’s .info file and add this line near the end of the file:
    settings[zen_jump_link_target]     = main-menu
    

    This assumes you want the skip link to use "#main-menu" as its URL. If you need to use a different HTML ID, you should specify that instead (don't include the # sign.)

Impacts: 
Site builders, administrators, editors
Themers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done