alternate sidebar not showing
-
I’m usually pretty successful in figuring these things out, but this one has me stumped. I think the problem may be in the functions.php. I have added 2 additional page templates(pagekids and pageteen) and 2 additional sidebars (sidebarkids/sidebarteen)
Both sidebars appear on the widgets admin and I have placed different widgets on each of the sidebars, but only the original default sidebar shows on all pages. The correct templates are applied to the specific pages and I have changed the “get_sidebar” code in each of the special page templates tophp include (TEMPLATEPATH . '/sidebarteen.php')
etc. Function.php code:
<?php
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’sidebar1’,
‘before_widget’ => ‘<div class=”sideblock”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h3>’,
‘after_title’ => ‘</h3>’,
));if ( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’sidebarkids’,
‘before_widget’ => ‘<div class=”sideblock”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h3>’,
‘after_title’ => ‘</h3>’,
));if ( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’sidebarteen’,
‘before_widget’ => ‘<div class=”sideblock”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘<h3>’,
‘after_title’ => ‘</h3>’,
));
`
the site is under construction at https://adelpl.org/blog
Thanks!!
- The topic ‘alternate sidebar not showing’ is closed to new replies.