Customize the mini calendar widget tribe_calendar_mini_grid()

Home Forums Calendar Products Events Calendar PRO Customize the mini calendar widget tribe_calendar_mini_grid()

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #27155
    Reuben
    Participant

    Is it possible to theme the tribe_calendar_mini_grid() ?

    Basically, we’re looking to make a few changes on the mini calendar widget, such as:
    Change ‘Oct 2012’ to full month ‘October 2012’
    Change ‘View All’ to read something else.

    I was hoping to be able to overwrite the output by placing a overriding output within our /theme-name/events/ folder within our theme.

    #27163
    Jonah
    Participant

    Hi Reuben,

    Yep, you can place a copy of /wp-content/plugins/the-events-calendar/views/table-mini.php in an ‘events’ folder in your theme and then change anything you want in the file.

    Does that help?

    Thanks,
    Jonah

    #27206
    Reuben
    Participant

    Thanks Jonah this worked perfectly.

    We weren’t able to change:
    echo $tribe_ecp->monthsShort[date(‘M’,$date)];
    to:
    echo $tribe_ecp->monthsShort[date(‘F’,$date)];

    So we just used the below instead:
    echo date(‘F’,$date);

    #27212
    Leah
    Member

    Hey Rueben, glad you got everything working. Unless you need further help on this, I’ll close out the ticket. Feel free to start another thread if you have more questions.

    ~Leah

    #28045
    Louise
    Member

    That’s because the correct PHP is:

    echo $tribe_ecp->monthsFull[date(‘F’,$date)];

    I’ve just changed it myself and works. 🙂

    Louise

    #28056
    Leah
    Member

    Thanks Louise!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Customize the mini calendar widget tribe_calendar_mini_grid()’ is closed to new replies.