Home › Forums › Calendar Products › Events Calendar PRO › How to hide certain meta info in event listings
- This topic has 5 replies, 4 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
October 14, 2012 at 8:08 pm #26599
Robin
ParticipantI have a calendar of recurring weekly events (classes) for a yoga studio. On the class (event) listing I don’t want certain meta to show, such as “Updated”, “Schedule” (the class is indefinite and has no end date) and the Venue, Phone and address, which are a given. How do hide these?
Additionally, I don’t need the “See all” link to see a listing of all the recurrences of the class. How do I remove that?
thanks!
October 15, 2012 at 7:07 am #26609Barry
MemberHi Robin – you would need to do something called a template override. Some essential reading before you get started:
Please do take the time to read over those and other resources made available – however in essence the idea is to create a folder within your theme’s directory (called “events”). You can then place inside that new folder any templates that you wish to customize.
In this case you are probably most interested in single.php – which you can copy from the plugin directory:
wp-content/plugins/the-events-calendar/views/single.php
You would then copy this so that a copy can be found here (substituting whatever the actual name of your theme is for “your-theme”):
wp-content/themes/your-theme/events/single.php
And edit away! For example, the code that generates the “Update: (date)” text looks like this http://pastebin.com/6hQmv8gG and you can quite simply remove it.
Hope that helps!
October 17, 2012 at 6:26 pm #26779Robin
ParticipantThanks Barry, I appreciate your help. I was somewhat familiar with the template overrides, but appreciate you clarifying.
Just want to note that for me, dropping a copy of the “single.php” into my mytheme/events/ directory actually caused a problem–all my site’s posts failed to load–just got blank, white pages–and I spent quite a bit of time troubleshooting. However, when I moved it into the mytheme/events/views directory (as is directed in the file itself), everything returned to normal.
October 17, 2012 at 6:31 pm #26780Robin
ParticipantWhoops, sorry Barry–I wish I could edit that last post but I can’t seem to. My mistake–I put the file loose into my theme directory. Once I moved it into the events folder within, all was fine. thanks again.
October 18, 2012 at 12:21 pm #26804Leah
MemberHey Robin,
Thanks for clarifying. Forum posts are not currently editable, although we’re considering changing that. I’m glad you got everything working well! I’m going to close out this thread, but don’t hesitate to start another if you need more help.
Cheers,
LeahJuly 7, 2015 at 6:26 am #978009Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘How to hide certain meta info in event listings’ is closed to new replies.
