Customizing SMF > Graphics and Templates

Category names as links

(1/1)

Beaman:
I want to separate the colors of the categories themselves. I want the board text black and the category names in white. I don't wish for the actual cat name to be linked for collapse/uncollapse, just the icon gif. Can someone tell me how to go about this? I'm sure it can be done in boardindex, but I'm not good at php so I'm not sure what to remove or change.

eg.          <a', $category['can_collapse'] ? ' href="' . $scripturl . '?action=collapse;c=' . $category['id'] . ';sa=' . ($category['is_collapsed'] ? 'expand' : 'collapse;') . '#' . $category['id'] . '"' : '', ' name="', $category['id'], '">', $category['can_collapse'] ? '<img src="' . $settings['images_url'] . '/' . ($category['is_collapsed'] ? 'expand.gif" alt="+' : 'collapse.gif" alt="-') . '" border="0" /> ' : '', $category['name'], '</a>

[Unknown]:
Change it to:

', $category['can_collapse'] ? '<a' . ($category['can_collapse'] ? ' href="' . $scripturl . '?action=collapse;c=' . $category['id'] . ';sa=' . ($category['is_collapsed'] ? 'expand' : 'collapse;') . '#' . $category['id'] . '"' : '') . '><img src="' . $settings['images_url'] . '/' . ($category['is_collapsed'] ? 'expand.gif" alt="+' : 'collapse.gif" alt="-') . '" border="0" /></a> ' : '', '<a style="color: your color;" name="', $category['id'], '">', $category['name'], '</a>

-[Unknown]

Beaman:
Great, thank you kindly.

Navigation

[0] Message Index

Go to full version