Divide photo view by day

Home Forums Calendar Products Events Calendar PRO Divide photo view by day

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1372378
    Matthew
    Participant

    Does anybody have a mod to add a divider between each day in the photo view? Right now all of the events display in a big grid of course, but I’m hoping to break the grid at the end of each day, so all of Nov 3 events show together, then <br> and Nov 4 events show together.

    Help?

    #1372931
    Victor
    Member

    Hi Matthew!

    Thanks for getting in touch with us! Let me help you with this topic.

    You can achieve what you are looking for by customizing the Photo view templates. We have a great article that will get you started on how to customize our templates > https://theeventscalendar.com/knowledgebase/themers-guide/

    We are fairly limited in how much support we can give for custom development questions like this, but we always like helping out and at least point users into the right direction as much possible.

    If you decide to go ahead with the customization and need assitance with it, don’t hesitate to ask and I’ll be happy to help.

    Let me know about it. 🙂

    Best,
    Victor

    #1383621
    Matthew
    Participant

    Hi Victor,

    Thanks for sending this feedback. I’m wondering if you can point me in any direction regarding the ability to divide the calendar into days. I know the list view divides it in months — but is there anyway to divide it into days?

    #1384401
    Victor
    Member

    Hi Mathew!

    Sure! To add a divider or any element in the photo view, you can make a template override (following the steps in our themer’s guide) of the loop.php template file. It basically boils down to this:

    • Make a copy of the loop.php template. It is located at wp-content/plugins/events-calendar-pro/src/views/pro/photo/loop.php
    • Make a new folder in your theme called tribe-events
    • Make a new folder in that one called pro
    • Drop your copied loop.php file in that last folder

    Now that the template is in your theme, you can modify it to suit your needs. In this case, you could add content after line 30, which will be inside the loop. You can paste the following code as an example:

    <?php if ( tribe_is_new_event_day() ) : ?>
    

    Next day

    <?php endif; ?>

    Will this work for you? Please let me know. 🙂

    Best,
    Victor

    #1401310
    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 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Divide photo view by day’ is closed to new replies.