WordPress.org

Forums

[resolved] Sidebar widgetized (4 posts)

  1. Joakim
    Member
    Posted 5 years ago #

    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..

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    I can't see anything wrong with the any of the above code snippets.

    I don't understand this...

    And that doesn't make you sound cool or make you a better coder. Try to keep a lid on your temper when asking for help, please.

  3. demiloca
    Member
    Posted 4 years ago #

    I have the same problem with a Woo Theme called "Irresistible". I have uploaded WordPress 4x and re-loaded the theme countless times but only have temporary success in getting the "SIDEBAR PANEL" to appear in the wp widget admin interface (wp-admin/widgets.php).

    I can see the widgets (rss, custom menu, etc.) that I want to drag to a SIDEBAR but there is NO SIDEBAR to drag them to. Originally the theme has TWO SIDEBARS (top sidebar, and sidebar) and they work long enough TWICE for me to add Twitter feeds but twice now the feeds disappear and I go to the admin panel and the sidebars are no longer there. I finished my new site a week ago but I've been trying to do work-arounds with amateur knowledge of CSS to no avail...

    HERE IS THE FUNCTIONS.php page:

    <?php
    
    /*-----------------------------------------------------------------------------------*/
    /* Start WooThemes Functions - Please refrain from editing this section */
    /*-----------------------------------------------------------------------------------*/
    
    // Set path to WooFramework and theme specific functions
    $functions_path = TEMPLATEPATH . '/functions/';
    $includes_path = TEMPLATEPATH . '/includes/';
    
    // WooFramework
    require_once ($functions_path . 'admin-init.php');            // Framework Init
    
    // Theme specific functionality
    require_once ($includes_path . 'theme-options.php');         // Options panel settings and custom settings
    require_once ($includes_path . 'theme-functions.php');         // Custom theme functions
    //require_once ($includes_path . 'theme-plugins.php');        // Theme specific plugins integrated in a theme
    //require_once ($includes_path . 'theme-actions.php');        // Theme actions & user defined hooks
    require_once ($includes_path . 'theme-comments.php');         // Custom comments/pingback loop
    require_once ($includes_path . 'theme-js.php');                // Load javascript in wp_head
    require_once ($includes_path . 'sidebar-init.php');            // Initialize widgetized areas
    require_once ($includes_path . 'theme-widgets.php');        // Theme widgets
    
    /*-----------------------------------------------------------------------------------*/
    /* End WooThemes Functions - You can add custom functions below */
    /*-----------------------------------------------------------------------------------*/

    and here is the SIDEBAR.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' );
    
    ?>

    ALSO, the footer menu appears but does not work! This also starts off fine and then eventually just is visible and doesn't actually navigate...

  4. yashmistrey
    Member
    Posted 4 years ago #

    i am also having bug don't know how to add a footer widget

Topic Closed

This topic has been closed to new replies.

About this Topic