Custom Sidebars to each page on my website
-
Hi.
My websites has several pages, and I would like to have diffrent sidebars for those pages.As I have understood I can add the code below to my function.php
But my question is, what do I then do? How Do I register new sidebars codes and where? And how do I call them to appear on a spesific page?: <?php /** * Functions - Framework gatekeeper * * This file defines a few constants variables, loads up the core framework file, * and finally initialises the main WP Framework Class. * * @package WPFramework * @subpackage Functions */ define( 'WP_FRAMEWORK', '0.2.4' ); // Defines current version for WP Framework /* Blast you red baron! Initialise WP Framework */ require_once( TEMPLATEPATH . '/library/framework.php' ); WPFramework::init(); // Register sidebars if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'Left Side', 'before_widget' => '<div id="%1$s" class="widget">', 'after_widget' => '</div>', 'before_title' => '<h4>', 'after_title' => '</h4>', )); register_sidebar(array( 'name' => 'Right Side', 'before_widget' => '<div id="%1$s" class="widget">', 'after_widget' => '</div>', 'before_title' => '<h4>', 'after_title' => '</h4>', )); } ?>
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Custom Sidebars to each page on my website’ is closed to new replies.