Home › Forums › Calendar Products › Events Calendar PRO › Divide photo view by day
- This topic has 5 replies, 2 voices, and was last updated 8 years, 5 months ago by
Matthew.
-
AuthorPosts
-
October 31, 2017 at 11:24 am #1372378
Matthew
ParticipantDoes 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?
November 1, 2017 at 8:54 am #1372931Victor
MemberHi 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,
VictorNovember 15, 2017 at 8:54 am #1383621Matthew
ParticipantHi 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?
November 16, 2017 at 4:13 am #1384401Victor
MemberHi 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,
VictorDecember 8, 2017 at 8:35 am #1401310Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Divide photo view by day’ is closed to new replies.
