ThemeShaper Forums » Thematic

Creating another widget ready sidebar in child theme

(6 posts)
  • Started 9 years ago by hally
  • Latest reply from em hr
  • This topic is not resolved

Tags:

  1. hally
    Member

    Is there a way I can create another widget ready sidebar in child theme. Likde a second primary and secondary sidebar?

    Posted 9 years ago #
  2. This may help: http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas#post-6601

    although it applies to the svn 577

    -Gene

    Posted 9 years ago #
  3. hally
    Member

    Yeah currently I am using 0.9.5.1 so i figure I have to wait till they release the next version of thematic officially. I did see this article but I did not http://themeshaper.com/wordpress-theme-sidebar-template/ . I wonder if they will help me create another sidebar. I don't seek to delete the other sidebar complete just delete from a particular page theme. However, if I was to create another sidebar I would just put the necessary code in the page them so the new sidebars widgets show up.

    Posted 9 years ago #
  4. hally
    Member

    Is there a way to create a dynamic_sidebar2 . I say this so that it will only appear on the page template I created. Something like <?php thematic_sidebar2() ?>

    Posted 9 years ago #
  5. hally
    Member

    I used this code below and it seemed to work to create the widgets in the sidebar. However I would like a dynamic_sidebar2 rather than it showing in the dynamic_sidebar. This way it will only show in the page templates I make the php call to.

    // Register widgetized areas
    function theme_widgets_init() {
    // Area 1
    register_sidebar( array (
    'name' => '2nd Primary Widget Area',
    'id' => '2nd_primary_widget_area',
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    'after_widget' => "",
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>',
    ) );

    // Area 2
    register_sidebar( array (
    'name' => '2nd Secondary Widget Area',
    'id' => '2nd_secondary_widget_area',
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    'after_widget' => "",
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>',
    ) );
    } // end theme_widgets_init

    add_action( 'init', 'theme_widgets_init' );

    Posted 9 years ago #
  6. This topic has unintentionally gotten forked and may be gaining traction in another thread here:
    http://forums.themeshaper.com/topic/does-anyone-know-when-the-next-version-of-the-thematic-theme-will-come-out

    Posted 9 years ago #

RSS feed for this topic

Reply

You must log in to post.