Last active
December 31, 2015 11:09
-
-
Save mclanecreative/7977638 to your computer and use it in GitHub Desktop.
To add the events tab to call The Events Calendar, insert this snippet this in your child theme folder. (...child-theme-name/includes/theme-options.php) For me this was after line 501.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$options[] = array( "name" => __('Events Area', 'woothemes'), | |
"type" => "subheading" ); | |
$options[] = array( "name" => __('Number of Event items', 'woothemes'), | |
"desc" => __('Select the number of events that should appear in the event area on the home page.', 'woothemes'), | |
"id" => $shortname."tribe_entries", | |
"std" => "3", | |
"type" => "select", | |
"options" => $other_entries); | |
$options[] = array( "name" => __( 'Event Order', 'woothemes' ), | |
"desc" => __( 'Select which way you wish to order your events.', 'woothemes' ), | |
"id" => $shortname."tribe_entries", | |
"std" => "DESC", | |
"type" => "select2", | |
"options" => array("desc" => __( 'Newest to oldest', 'woothemes' ), "ASC" => "Oldest to newest", "rand" => "Random order") ); | |
$options[] = array( "name" => __('Category Include - Homepage', 'woothemes'), | |
"desc" => __('Specify a comma seperated list of categories or slugs that you\'d like to include on your homepage (eg: uncategorized).', 'woothemes'), | |
"id" => $shortname."tribe_entries_include", | |
"std" => "", | |
"type" => "text" ); | |
$options[] = array( "name" => __('Event Area Title Text', 'woothemes'), | |
"desc" => "Enter the title for the events area to be displayed on your homepage.", | |
"id" => $shortname."tribe_title", | |
"std" => "Upcoming Events", | |
"type" => "text" ); | |
$options[] = array( "name" => __('Event Area Message', 'woothemes'), | |
"desc" => __('Enter the message for the events area to be displayed on your homepage.', 'woothemes'), | |
"id" => $shortname."tribe_message", | |
"std" => __('This is where your events will show up. You can change this text in the options.', 'woothemes'), | |
"type" => "textarea" ); | |
$options[] = array( "name" => __('Event Area Link Text', 'woothemes'), | |
"desc" => __('Enter the text for the link to the events page in the features area to be displayed on your homepage.', 'woothemes'), | |
"id" => $shortname."tribe_link_text", | |
"std" => __('View all events', 'woothemes'), | |
"type" => "text" ); | |
$options[] = array( "name" => __('Event Area Link URL (optional)', 'woothemes'), | |
"desc" => __('Enter an custom URL for the events page link.', 'woothemes'), | |
"id" => $shortname."tribe_link_URL", | |
"std" => "", | |
"type" => "text" ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment