Last active
August 29, 2015 14:26
-
-
Save eclectic-coding/c2dcd182e7c54dd45a32 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
<?php | |
//* Do NOT include the opening php tag | |
/*--------------------------------------------------------------------------------------------*/ | |
/* Event Calendar Feed in full page width | |
/* Original Function by: jonahcoyote.com | |
/* Revised by Chuck Smith (polishedwp.com) to check for calendar monthly and event list views | |
/*--------------------------------------------------------------------------------------------*/ | |
add_filter('genesis_pre_get_option_site_layout', 'set_layouts'); | |
function set_layouts($layout) { | |
if (tribe_is_list_view() || tribe_is_month ()) { | |
$layout = 'full-width-content'; | |
} | |
return $layout; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment