Skip to content

Instantly share code, notes, and snippets.

@eri-trabiccolo
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eri-trabiccolo/b52382def689179889e4 to your computer and use it in GitHub Desktop.
Save eri-trabiccolo/b52382def689179889e4 to your computer and use it in GitHub Desktop.
Change the customizr layout in a template
<?php
add_filter('__screen_layout', 'my_layout', 10, 2);
function my_layout($id, $arg){
$global_layout = TC_init::$instance -> global_layout;
if ( $arg == 'class'){
return $global_layout['b']['content'];
}
return 'b';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment