Sidebar widgetized
-
I have downloaded a theme from Woo themes, but the sidebar widgetized area dosen’t work.
Here is the sidebar.php
<div id="sidebar"> <!-- Add you sidebar manual code here to show above the widgets --> <div class="widgetized"> <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) ?> </div> <!-- Add you sidebar manual code here to show below the widgets --> <!-- Sidebar Video --> <?php if ( get_option('woo_video') == 'false' ) include ( TEMPLATEPATH . "/includes/video.php" ); ?> <!-- Sidebar Tabs --> <?php if ( get_option('woo_tabs') == 'false' ) include ( TEMPLATEPATH . "/includes/tabs.php" ); ?> <!-- Add you sidebar manual code here to show above the widgets --> <div class="widgetized"> <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) ?> </div> <!-- Add you sidebar manual code here to show below the widgets --> </div><!-- / #sidebar -->
Here is the functions.php
<?php //Start WooThemes Functions - Please refrain from editing this file. $functions_path = TEMPLATEPATH . '/functions/'; $includes_path = TEMPLATEPATH . '/includes/'; // Options panel variables and functions require_once ($functions_path . 'admin-setup.php'); // Custom functions and plugins require_once ($functions_path . 'admin-functions.php'); // Custom fields require_once ($functions_path . 'admin-custom.php'); // More WooThemes Page require_once ($functions_path . 'admin-theme-page.php'); // Admin Interface! require_once ($functions_path . 'admin-interface.php'); // Options panel settings require_once ($includes_path . 'theme-options.php'); // What we do! //Custom Theme Fucntions require_once ($includes_path . 'theme-functions.php'); //Custom Comments require_once ($includes_path . 'theme-comments.php'); // Load Javascript in wp_head require_once ($includes_path . 'theme-js.php'); // Widgets & Sidebars require_once ($includes_path . 'sidebar-init.php'); require_once ($includes_path . 'theme-widgets.php'); add_action('wp_head', 'woothemes_wp_head'); add_action('admin_menu', 'woothemes_add_admin'); add_action('admin_head', 'woothemes_admin_head'); ?>
Here is the includes/sidebar-init.php
<?php // Register widgetized areas function the_widgets_init() { if ( !function_exists('register_sidebars') ) return; register_sidebars(1,array('name' => 'Sidebar','before_widget' => '<div id="%1$s" class="">','after_widget' => '</div></div>','before_title' => '<h3>','after_title' => '</h3><div class="list3 box1">')); register_sidebars(1,array('name' => 'Sidebar Top','before_widget' => '<div id="%1$s" class="">','after_widget' => '</div></div>','before_title' => '<h3>','after_title' => '</h3><div class="list3 box1">')); } add_action( 'init', 'the_widgets_init' ); ?>
Does someone now what I have to do to get my sidebar work correctly? I don’t understand this fucking woo-code..
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Sidebar widgetized’ is closed to new replies.