WordPress Themes, Plugins and HTML Templates › Forums › Contango WordPress Theme › Changing Width of Footer Columns › Re: Changing Width of Footer Columns
Hi Natascha,
I’ve changed the footer column in 4 columns
That’s great.
but where can i change it on the WP widget page. so i can put widget on it
Please follow the simple steps.
– Open “contango/lib/modules.php” in your favorite editor.
– Search for “kamn-footer-sidebar-3” ~ Line Number: 73
– Enter the following code at the end of “kamn-footer-sidebar-3” array
[PHP]’kamn-footer-sidebar-4′ => array(
‘name’ => __( ‘Footer Column 4’, ‘kamn’ ),
‘id’ => ‘kamn-footer-sidebar-4’,
‘description’ => __( ‘Widget area for footer column 4.’, ‘kamn’ )
)[/PHP]
So the final code of $sidebars array will be,
[PHP]/** Sidebars (Built-in) */
$sidebars = array(
‘kamn-primary-sidebar’ => array(
‘name’ => __( ‘Primary Sidebar’, ‘kamn’ ),
‘id’ => ‘kamn-primary-sidebar’,
‘description’ => __( ‘The main (primary) widget area used as a sidebar.’, ‘kamn’ )
),
‘kamn-front-page-sidebar’ => array(
‘name’ => __( ‘Front Page’, ‘kamn’ ),
‘id’ => ‘kamn-front-page-sidebar’,
‘description’ => __( ‘The front page widget area used as a sidebar.’, ‘kamn’ )
),
‘kamn-page-sidebar’ => array(
‘name’ => __( ‘Page Sidebar’, ‘kamn’ ),
‘id’ => ‘kamn-page-sidebar’,
‘description’ => __( ‘The page widget area used as a sidebar.’, ‘kamn’ )
),
‘kamn-footer-sidebar-1’ => array(
‘name’ => __( ‘Footer Column 1’, ‘kamn’ ),
‘id’ => ‘kamn-footer-sidebar-1’,
‘description’ => __( ‘Widget area for footer column 1.’, ‘kamn’ )
),
‘kamn-footer-sidebar-2’ => array(
‘name’ => __( ‘Footer Column 2’, ‘kamn’ ),
‘id’ => ‘kamn-footer-sidebar-2’,
‘description’ => __( ‘Widget area for footer column 2.’, ‘kamn’ )
),
‘kamn-footer-sidebar-3’ => array(
‘name’ => __( ‘Footer Column 3’, ‘kamn’ ),
‘id’ => ‘kamn-footer-sidebar-3’,
‘description’ => __( ‘Widget area for footer column 3.’, ‘kamn’ )
),
‘kamn-footer-sidebar-4’ => array(
‘name’ => __( ‘Footer Column 4’, ‘kamn’ ),
‘id’ => ‘kamn-footer-sidebar-4’,
‘description’ => __( ‘Widget area for footer column 4.’, ‘kamn’ )
)
);[/PHP]
Reverify your footer columns
Your newly added forth footer (lib/utils.php) should have following condition,
[PHP][/PHP]
Enjoy!