WordPress.org

Support

Support » Plugins and Hacks » Setting different colors for classes

Setting different colors for classes

  • I made a little hack for setting different colors for classes.

    change /models/WcsSchedule.php (line 593):

    /* Generate actual class div */
    $output .= "<div class='wcs-active-div-$i wcs-active-div $odd_even'>";

    to

    /* Generate actual class div */
    $output .= "<div class='wcs-active-div-$i wcs-active-div $odd_even cid-$class->class_id'>";

    then, set css color for each classes.

    table.wcs-schedule td .wcs-active-class-container .cid-1 p:first-child { color: red; }
    table.wcs-schedule td .wcs-active-class-container .cid-2 p:first-child { color: blue; }
    table.wcs-schedule td .wcs-active-class-container .cid-3 p:first-child { color: green; }

    These css set different colors on classes.

    http://wordpress.org/plugins/weekly-class-schedule/

Viewing 3 replies - 1 through 3 (of 3 total)
  • MI C

    @mi-computsolutions

    Tried your HACK out, it doesn’t seem to change a thing. I put the CSS code in the WCS.CSS file… or maybe there something I got wrong..

    Thank You 9steps for this hack!
    Works very well for me 🙂

    Hello. this change works correctly. Mention css changes, add to end of file in wcs.css

    best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Setting different colors for classes’ is closed to new replies.