Adding widget sidebar to new page template
-
Using a theme (based on Sandbox) i created 6 sidebars in widgets. I did this by modifying the line in functions.php to read
register_sidebars(6, $p);
So then I created a new template by copying the default page template an renaming it.
I assume to point to the sidebar #3 in the new template I need to modify the line:
<?php get_sidebar() ?>
Somewhere I read that to place Sidebar 3 in the template you use the code:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar3') ) : ?> <?php endif; ?>
But this doesn’t work. Any ideas what I am doing wrong?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding widget sidebar to new page template’ is closed to new replies.