Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Adding CSS to side panel

edited July 2006 in Vanilla 1.0 Help
I'd like to add classes to quick categories, discussion filters, quick login, whos online etc, but currently they all share the same list style is there a way to add a class to the ul atleast for each?

Comments

  • anyone? vanilla is pretty inflexible to style so far... unless you know php :(
  • Have you checked out the themes folder yet? Just work round the php...
  • edited July 2006
    Make a new theme, add a panel.php, and change line 25 from:
    $sReturn .= '<ul>

    to
    $sReturn .= '<ul class='.str_replace(array(' ', "'", '"', ':'), "", $Key).'>
  • lechlech Chicagoland
    edited July 2006
    wrap your head around this first : http://getvanilla.com/tour/themes/ :)
  • wow A++ Bergamot! Thanks lech, I already had a new theme just needed to class each one :)
  • How do I add classes like, $key3 $key4 etc, just to get different classes on different stuff like uls lis tables etc using the same method, but ugly but works
  • I'm not entirely sure what you're trying to do, but I think the easiest way would just be to keep track of a counter variable, increment it every time you go through the loop, and use the . operator to stick it on the back of whatever you want to use as your base class name.
  • get the web developer toolbar and css viewer extensions for firefox. it will help you identify classes in your live board and thus, help you style more efficiently.
This discussion has been closed.