Closed (fixed)
Project:
Drupal core
Version:
5.3
Component:
theme system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2008 at 00:45 UTC
Updated:
12 Dec 2008 at 21:12 UTC
I am trying to use theme_links() on the side navigation, not primary or secondary links (as shown here:
http://drupal.org/node/64292#menu-links)
My overall goal is to style each link with a unique background image. In my page.tpl.php, I only have print $sidebar_left and I don't know how to get at the menu block. How might I go about doing this?
Comments
Comment #1
ainigma32 commentedIt's been a while but here goes anyway...
If you just want to style the links, the fastest and easiest way is using CSS.
Use Firebug to get the classname of the block that holds your navigation. Probably:
Now you can access the links with
You could target just one menu block (with id 51) by using:
The drawback is that you have to modify your theme if the block id is ever changed.
If you want to do it the Drupal way aka The Right WayTM see here http://drupal.org/theme-guide/5 and here http://drupal.org/node/22803
HTH
- Arie