I am using a WordPress theme which has just header and footer. I would like to continue using it by changing the width and adding side bars.
Could anyone help me to change the width (to fit to the screen) of the theme. Does anybody have an idea on how to add sidebars to this theme?
==========
Sorry for not making clear in my earlier question. The theme I am using is Minicard
The lines similar to ...
if (function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Sidebar Widgets',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widgettitle">',
'after_title' => '</h3>'
));
are already there.
This is the code I found there:
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'name' => __('Beneath the Card (Top)', 'minicard'),
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '<div class="clear"></div></li>',
'before_title' => '<h2 class="section widgettitle">',
'after_title' => '</h2>',
));
register_sidebar(array(
'name' => __('Beneath the Card (Bottom)', 'minicard'),
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '<div class="clear"></div></li>',
'before_title' => '<h2 class="section widgettitle">',
'after_title' => '</h2>',
));
}
So I have created sidebar.php
file and added the code you have given for side bar.
Later I have tried to add the following code:
#sidebar {
width: 240px;
float:right;
padding:0 20px 20px;
}
to CSS.
After making these changes I've looked for the sidebar and I havn't found any additional one.