Results 1 to 2 of 2

Thread: How can I register an additional sidebar?

  1. #1
    Thread Starter
    Junior Member opportunitymax's Avatar
    Join Date
    Apr 2011
    Posts
    31
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How can I register an additional sidebar?

    For my classipress site I've created several different page templates, and I'm want to create additional sidebars for these different templates.

    So, I went into theme-sidebars.php and added the following code (a copy of the 'page sidebar', renamed to 'public sidebar':

    register_sidebar(array(
    'name' => __('Public Sidebar','appthemes'),
    'id' => 'sidebar_page',
    'description' => __('This is your ClassiPress public sidebar.','appthemes'),
    'before_widget' => '<div class="shadowblock_out" id="%2$s"><div class="shadowblock">',
    'after_widget' => '</div><!-- /shadowblock --></div><!-- /shadowblock_out -->',
    'before_title' => '<h2 class="dotted">',
    'after_title' => '</h2>',
    ));

    I then copied sidebar-page.php and changed all mentions of 'page' to 'public', and renamed the file to sidebar-public.php

    I then went into my template and replaced:
    <?php get_sidebar('page'); ?>
    with:
    <?php get_sidebar('public'); ?>

    The sidebar is recognised in the widget section of the admin panel, but the widgets I have dragged there aren't brought up on the page using the template. The blogroll is being shown instead, so I'm guessing the dynamic sidebar has not been registered properly.

    Any ideas of how to do it?

  2. #2
    Veteran hugo's Avatar
    Join Date
    Aug 2010
    Location
    United Kingdom
    Posts
    310
    Thanks
    13
    Thanked 80 Times in 54 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    My Classipress Suggestion: http://ideas.appthemes.com/forums/84...ents?ref=title vote if you like!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Additional observations
    By bephuong in forum Report Clipper Bugs
    Replies: 2
    Last Post: April 7th, 2011, 02:01 AM
  2. [MOD NEEDED] How can I put sidebar in Register or in Login Page?
    By faciltech in forum ClassiPress General Discussion
    Replies: 2
    Last Post: November 30th, 2010, 12:08 PM
  3. Pie Register / Register Plus - Email Verification
    By joe90uk in forum ClassiPress General Discussion
    Replies: 3
    Last Post: September 4th, 2010, 12:11 PM
  4. Additional information
    By indymart in forum ClassiPress General Discussion
    Replies: 2
    Last Post: January 14th, 2010, 01:07 PM