Hide widget calender with no events?

Home Forums Calendar Products Events Calendar PRO Hide widget calender with no events?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1378746
    Ann-Catrine
    Participant

    Is it possible to hide the widget calender when there are no upcoming events?

    #1380315
    Cliff
    Member

    Hi, Ann-Catrine.

    You could follow our Themer’s Guide to remove the “There are no upcoming events at this time.” text by deleting Line 118 in your customization of https://github.com/moderntribe/the-events-calendar/blob/4.6.4/src/views/widgets/list-widget.php#L118

    However, this still wouldn’t hide the widget title.

    Assuming you only have 1 of these widgets on a given page (else the CSS would match more than one and not be what you want), the last few lines of your override file could look like this:

    https://gist.github.com/cliffordp/2dd74b67bc9c217c5829b4b10b17d323

    Please let me know if you have any follow-up questions on this topic.

    #1397226
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Hide widget calender with no events?’ is closed to new replies.