Created
October 28, 2013 14:36
-
-
Save srikat/7197793 to your computer and use it in GitHub Desktop.
Code for iThemes Builder to apply a layout to Timely’s All-in-One Event Calendar's events archive page, single event pages and calendar Page.
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
function set_custom_layout( $layout_id ) { | |
if ( is_post_type_archive('ai1ec_event') || is_singular('ai1ec_event') || is_page('calendar') ) | |
return '526e727b11aca'; | |
return $layout_id; | |
} | |
add_filter( 'builder_filter_current_layout', 'set_custom_layout' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment