Forked from jesseeproductions/ecp-genesis-page-width
Last active
August 29, 2015 14:23
-
-
Save brianjking/6711ac17026fab68de87 to your computer and use it in GitHub Desktop.
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
/* | |
* Genesis Page Layout of The Event Calendar Main Events Page | |
* The Events Calendar @3.8 | |
* Genesis @2.1.2 | |
* Options - full-width-content, content-sidebar, sidebar-content, content-sidebar-sidebar, sidebar-sidebar-content, sidebar-content-sidebar | |
*/ | |
add_filter( 'genesis_site_layout', 'tribe_genesis_page_width' ); | |
function tribe_genesis_page_width() { | |
if( tribe_is_upcoming() || tribe_is_past() || tribe_is_map() || tribe_is_photo() || tribe_is_month() || tribe_is_week() || tribe_is_day() || tribe_is_photo() ) { | |
return 'full-width-content'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment