Home › Forums › Calendar Products › Events Calendar PRO › Remove extra meta details and organizer info
- This topic has 7 replies, 2 voices, and was last updated 11 years, 3 months ago by
Geoff.
-
AuthorPosts
-
January 20, 2015 at 8:44 am #935238
Carl
ParticipantHi there,
I’m creating a training course website for my client and they would like to remove the details and organizer box on the front end of the site as the date of the event is already underneath the title. Is there a way to remove this from the front end, but they would still like to keep the venue info. An example of a page can be found here: http://www.bmarqtraining.co.uk/courses/revit-architecture-essentials-london-waterloo/
Thank you for your help
January 20, 2015 at 9:07 am #935252Geoff
MemberHello Carl–welcome back! 🙂
Good question. Yes, this is definitely possible by customizing the meta.php template. You’ll want to check out our Themer’s Guide for a thorough overview of how overrides work, but in short:
- Make a copy of the meta.php file (located in /plugins/the-events-calendar/views/modules)
- Make a new folder in your theme directory called tribe-events
- Make a new folder in that one called modules
- Drop the copied file in that folder
Now that the template is in your theme files, you can customize it to suit your needs. In this case, removing Lines 27-28 and Lines 41-44 should do the trick.
Will this work for you? Please let me know. 🙂
Cheers!
GeoffJanuary 21, 2015 at 8:42 am #935731Carl
ParticipantHi Geoff,
I’ve been trying to find the folder for this but can’t seem to find it. Do I need to go into FTP to find it?
Thanks
January 21, 2015 at 8:32 pm #936018Geoff
MemberYes, FTP is a good way to go to get that file. Sorry if I was unclear. 🙂
January 22, 2015 at 3:51 am #936099Carl
ParticipantJust double checking would it be:
// Always include the main event details in this first section
tribe_get_template_part( ‘modules/meta/details’ );$set_venue_apart = true;
}// Include organizer meta if appropriate
January 22, 2015 at 6:37 am #936150Geoff
MemberThanks for checking! The second part to remove would actually be Lines 44-47:
// Include organizer meta if appropriate if ( tribe_has_organizer() ) { tribe_get_template_part( 'modules/meta/organizer' ); }Cheers!
GeoffJanuary 22, 2015 at 6:50 am #936157Carl
ParticipantThanks! This worked a treat. I really appreciate your assistance as I’m not very familiar with php!
January 22, 2015 at 7:25 am #936174Geoff
MemberMy pleasure! I’m so glad that did the trick and got you what you’re looking for–thanks for following up and letting me know.
I’ll go ahead and close this thread, but please feel free to open a new one if anything else pops up.
By the way, if you haven’t already done so, we’d love to hear your thoughts on the plugin on our review page. 🙂
Cheers!
Geoff -
AuthorPosts
- The topic ‘Remove extra meta details and organizer info’ is closed to new replies.
