Background in Calendar Widget

Home Forums Calendar Products Events Calendar PRO Background in Calendar Widget

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17738
    Piotr
    Participant

    I would like to show (harder) days when there are any events for example give – another background.
    Please, tell me where I can change it.
    I think that when you see photo you understand my problem.
    Now: http://img849.imageshack.us/img849/1679/23954582.png
    I would like: http://img802.imageshack.us/img802/8629/24897543.png

    #17747
    Jonah
    Participant

    Hi Piotr,

    You’ll want to modify /wp-content/plugins/the-events-calendar/views/table-mini.php.

    1. First make a copy of it and place in an ‘events’ folder in your theme.
    2. Find line 87 and replace:

    $return = "";

    with:

    if (count($monthView[$day]) > 0) {
    $return = "";
    } else {
    $return = "";
    }

    … that will add a class of ‘has-events’ to the days that have events.
    3. In your CSS simply target the .has-events class and style it however you want.

    I hope that helps!

    #17748
    Jonah
    Participant

    Sorry about that, on line 87 the code you’re replacing is: http://pastie.org/private/fi8nv2f0gbspqgzep2kexq

    And the code to replace with is:
    http://pastie.org/private/5udzgryiujkkbmgldn4zdw

    #976483
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Background in Calendar Widget’ is closed to new replies.