Last active
August 29, 2015 14:12
-
-
Save eri-trabiccolo/b52382def689179889e4 to your computer and use it in GitHub Desktop.
Change the customizr layout in a template
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 | |
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