Support

Home Forums Event Espresso Premium Prefer small scale calendar but does not start on logical date

Prefer small scale calendar but does not start on logical date

Posted: April 22, 2020 at 7:19 pm


BoutiqueBikeTours

April 22, 2020 at 7:19 pm

Hello,

We are using the calendar display on our pages, but find the normal html version to be unpleasant in appearance. We prefer the small scale calendar which we are using through widgets, however cannot seem to set the calendar start date to be from the first tour (event) listed. It starts from the current month, meaning if there are no tours until August the client will have to scroll through many months to get there.

How do we set the calendar widget to start at the first month with events?


BoutiqueBikeTours

April 22, 2020 at 7:22 pm

Alternatively is there a way of removing the event title from the normal html calendar display, as the event titles are what cause the calendar to have a poor appearance.


Josh

  • Support Staff

April 22, 2020 at 8:05 pm

Hi,

You can add the following PHP code to your site to remove the event titles from the calendar:

add_filter(
    'FHEE__EE_Datetime_In_Calendar__to_array_for_json__title',
    function(
        $original_title,
        $datetime_in_calendar
    ) {
        return '';
    },
    10,
    2 
);

You can add the above to a functions plugin or, if available, into your WordPress child theme’s functions.php file.

The support post ‘Prefer small scale calendar but does not start on logical date’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso