WordPress.org

Ready to get started?Download WordPress

Forums

Weekly Class Schedule
Setting different colors for classes (4 posts)

  1. 9steps
    Member
    Posted 7 months ago #

    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/

  2. MI C
    Blocked
    Posted 6 months ago #

    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..

  3. WPMAXX
    Member
    Posted 4 months ago #

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

  4. dfgphp
    Member
    Posted 3 months ago #

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

    best regards.

Reply

You must log in to post.

About this Plugin

About this Topic