I'd like to be able to create a sidebar for different page types so I can have different sidebar content depending on where in the site you are. Typically I'd do this in the functions.php
by putting something like
if ( function_exists('register_sidebars') )
register_sidebar(array('name'=>'Right Sidebar','before_widget'=>'<div id="%1$s" class="widget %2$s">','after_widget'=>'</div>','before_title'=>'<h4>','after_title'=>'</h4>'));
and then calling it from the page template, but I can't seem to find the register sidebars function anywhere in the theme to do this.
Creating additional sidebars for different pages
(3 posts) (3 voices)-
Posted 1 year ago #
-
it's in widgets.php in library/functions.
Posted 1 year ago #
Reply
You must log in to post.