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.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Josh 1 month ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!