Hello,
I wanted to add some simple Additional CSS to get a smaller menu size (and so more space for the content part) but I cannot make it work.
The code I added is the following:
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' => 'span4' , 'sidebar' => 'span4'),//both : two sidebars
'f' => array ('content' => 'span12' , '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;
}
What’s wrong with it ?
Is there any other maybe simpler CSS to do it ?
I just want more or less 1/5 menu size and 4/5 content size
Thanks for your help, still a beginner here… 🙂
Eric
The page I need help with: [log in to see the link]