Edit: Fixed it, problem was typo.
Hello,
I am trying to achieve the same. I created a new layout as shown here: https://presscustomizr.com/snippet/changing-the-global-column-layout-of-the-customizr-theme/
My content should have the width of span10 and two invisible sidebars of span2 to center the content. But the problem is that the right sidebar is not shown properly, instead it floats to the left. How can I fix this? My code:
add_filter('tc_global_layout', 'my_custom_layout' );
function my_custom_layout( $layout ) {
$my_layout = array(
'r' => array ('content' => 'span10' , 'sidebar' => 'span2'),//sidebar on the right
'l' => array ('content' => 'span10' , 'sidebar' => 'span2'),//sidebar on the left
'b' => array ('content' => 'span8' , 'sidebar' => 'span2'),//both : two sidebars
'f' => array ('content' => 'span10' , 'sidebar' => false),//full width : no sidebars
);
//sets new values for content and sidebar (checks if there are new values to set first)
foreach ($layout as $key => $value) {
$layout[$key]['content'] = isset( $my_layout[$key]['content']) ? $my_layout[$key]['content'] : $layout[$key]['content'];
$layout[$key]['sidebar'] = isset( $my_layout[$key]['sidebar']) ? $my_layout[$key]['sidebar'] : $layout[$key]['sidebar'];
}
return $layout;
}