Created
August 23, 2016 15:42
-
-
Save skyshab/d0aa3b74ba53bd0953297a78cbd6eb62 to your computer and use it in GitHub Desktop.
Custom code I used to integrate The Event Calendar with Divi
This file contains 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
<?php | |
/** | |
* Custom Events Template | |
* This file is the basic wrapper template for all the views if 'Default Events Template' | |
* is selected in Events -> Settings -> Template -> Events Template. | |
* | |
* Override this template in your own theme by placing this file at [your-theme]/tribe-events/default-template.php | |
* | |
* @package TribeEventsCalendar | |
* | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { | |
die( '-1' ); | |
} | |
get_header(); ?> | |
<div id="main-content"> | |
<div class="container"> | |
<div id="tribe-events-pg-template"> | |
<?php tribe_events_before_html(); ?> | |
<?php tribe_get_view(); ?> | |
<?php tribe_events_after_html(); ?> | |
</div> <!-- #tribe-events-pg-template --> | |
</div> | |
</div> | |
<?php get_footer(); ?> |
This file contains 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
/* Custom CSS for Tribe Events Plugin */ | |
.tribe-events-page-template #main-content .container:before { | |
content: none; | |
} | |
#main-content .tribe-events-list-widget .widgettitle { | |
font-size: 1.2em; | |
margin-bottom: 1em; | |
} | |
#main-content .tribe-events-list-widget-events .entry-title { | |
font-size: 1em; | |
padding-bottom: 0; | |
} | |
#main-content .tribe-events-list-widget-events .duration { | |
font-size: 0.8em; | |
} | |
#main-content .tribe-events-list-widget ol { | |
padding: 0; | |
} | |
.tribe-events-list-widget ol li { | |
margin-bottom: 1em; | |
} | |
#main-content .tribe-events-widget-link a:hover, a.more-link:hover { | |
text-decoration: underline; | |
} | |
#tribe-events-content { | |
margin-bottom: 0; | |
} | |
.tribe-events-button { | |
margin-bottom: 1.2em; | |
} |
lifesaver!
oh, lifesaver :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing. Saved me a ton of time and looks good.