Hi
I’ve been reading through the literature that is on the above link and other sources, and think I’ve more or less understand it and have placed it correctly.
I’ve created myself three separate sidebar.php files with individual names and configured my functions.php as below:
if ( function_exists(‘register_sidebar’) ) {
register_sidebar(array(
‘name’=>’sidebar_right’,
‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h2 class=”widgettitle”>’,
‘after_title’ => ‘</h2>’,
));
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘name’=>’sidebar_bottomleft’,
‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h2 class=”widgettitle”>’,
‘after_title’ => ‘</h2>’,
));
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘name’=>’sidebar_bottomright’,
‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h2 class=”widgettitle”>’,
‘after_title’ => ‘</h2>’,
));
I’ve then gone into each of the different sidebar.php files and individually configured them as follows:
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘sidebar_right’) ) : ?>
My only issue now is that I can’t seem to manage to place them in my index.php, what code do I need to use, currently and before I had mulitply side bars I had the following:
<?php get_sidebar(); ?>
I’ve tried placing the sidebar name inbetween the brackets, but had no success, I;ve also tried the following pieces of codex as well
<?php register_sidebarr(); ?>
<?php dynamic_sidebarr(); ?>
Could someone tell me where I’m going wrong?
Thank you