How to hide certain meta info in event listings

Home Forums Calendar Products Events Calendar PRO How to hide certain meta info in event listings

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #26599
    Robin
    Participant

    I 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!

    #26609
    Barry
    Member

    Hi 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!

    #26779
    Robin
    Participant

    Thanks 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.

    #26780
    Robin
    Participant

    Whoops, 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.

    #26804
    Leah
    Member

    Hey 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,
    Leah

    #978009
    Support Droid
    Keymaster

    This 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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to hide certain meta info in event listings’ is closed to new replies.