Remove 2nd Calendar Icon For Same Day Events

Home Forums Calendar Products Events Calendar PRO Remove 2nd Calendar Icon For Same Day Events

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #985244
    Steve
    Participant

    Using Pro. Scenario: I have 3 shows on a Monday. I add list shortcode to homepage, and a calendar icon appears next to each event on that Monday. Can I keep the icon for the first event of the day, and remove the other two icons? How? Thanks!

    #985414
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can try to help out here, but I am limited in supporting customizations, but can help get you started.

    I looked at your site and see what you mean, however, there is no feature to hide the 2nd or 3rd icon.

    You could follow our themer’s guide:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    And modify the single event widget template and check if the icon has already been used and if so then do not show it again.

    events-calendar-pro\src\views\pro\widgets\modules\single-event.php

    The logic would look something like this:

    Set global variable
    If ( previous date = current date )
    do not show
    else if (previous date != current date)
    show current date

    Let me know if you have any follow up questions.

    Thanks

    #985465
    Steve
    Participant

    Thanks, I’ll give it a shot.

    #985472
    Brian
    Member

    Sounds good.

    Since this is marked resolved I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove 2nd Calendar Icon For Same Day Events’ is closed to new replies.