Skip to content

Instantly share code, notes, and snippets.

@CarolinaEpicurean
Last active December 20, 2015 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CarolinaEpicurean/6113200 to your computer and use it in GitHub Desktop.
Save CarolinaEpicurean/6113200 to your computer and use it in GitHub Desktop.
Add "Submit" Button for The Events Calendar WP Plugin
(Read the Themer’s Guide: The Events Calendar/Pro 3.0)( http://tri.be/support/documentation/events-calendar-themers-guide/)
This is what I did:
1. Created a new folder in my theme folder
Opened - wp-content/themes/your-theme/
Then created the following folder: /tribe-events/
2. Located the files I wished to edit in:
/wp-content/plugins/the-events-calendar/views
3. Copied the file: default-template.php
4. Pasted the file into the new /tribe-events/ folder
5. Added the new code between these two lines:
<div id="tribe-events-pg-template">
NEW CODE (see below)
<?php tribe_events_before_html(); ?>
NEW CODE
<p style="text-align: left;"><br /><a href="http://your site name/events/community/add" class="button blue">Submit Event</a>
*I also added code for people who want to register for community submissions: &nbsp;&nbsp;&nbsp;<strong>OR</strong>&nbsp;&nbsp;&nbsp; Email <a href="mailto:thecarolinaepicurean@gmail.com?Subject=Register for Event Submission" target="_blank">thecarolinaepicurean@gmail.com</a> for link to Register for ongoing Event Submission & Editing</p>
**When I originally set up Community Events, I had a Subscribe button so people could be a Community member. That meant I had to enable “let anyone register”. Once I did that, I got a lot of spam registrations. They were probably hoping I hadn’t restricted user level and would have hacked my site. So, no more of that!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment