By Rombus on
Im working on modifying the node.tpl.php of fblike to fit my own needs. Currently i'm running into an issue where calling $terms generates a themed list of terms associated with that node. Unfortunately this generates the link with an unwanted color scheme. i cant modify the css to change node.links to be different since its used in another part of the site.
Simplest solution would be to call $terms without the theme_links() output, but i cant seem to figure out how to stop this in Drupal 6. Any suggestions?
Comments
Even simpler
Add a span or div around the links and give a class name. That would allow you to change the styling for the links without changing it else where.
Unfortunitally, its already
Unfortunitally, its already setup like that, the span just sets the text to gray. I havent attempted to add link specific css yet, if i specify the link color, etc., in that particular class, will it overright whats already being done to it?
It should though you need
It should though you need the override to reflect the original rule. So if the original rule was
.links aand your wrapper class was 'node-links' you would want something like.node-links .links aStill seems like im running
Still seems like im running into issues by the way drupal handles the $terms. The current output can be seen here:
http://romb.us
The problem is the submitted data under "Working on it!", as you can see the link at the end is the issue.
Heres the HTML output:
Here is the submitted css code:
here is the node_links css:
It seems that all the added fluff, (Links inline, etc) are being added by theme_links. Adding .links to the submitted class seems to break the rest of the submitted class, i loose the background color of the link, but i also loose the submitted sizing.
If you want to override just
If you want to override just the theming of the links in side the span with the submitted class use