Tested on: Zen theme, Drupal 5.7
- Copy function theme_links from includes/themes.inc
- Paste it into your template.php
- Rename it in theme_primarylinks (or anything you want)
- In your page.tpl.php, change
- print theme(’links’, $primary_links);
- to print theme(’primarylinks’, $primary_links);
- Apply some changes to theme_primarylinks to customize your primary links.
According to theme manual, for any first argument passed to theme function a theme_functionname function is called.

Recent Comments