WordPress.org

Forums

Multiple Sidebar formatting (2 posts)

  1. TSemmes
    Member
    Posted 6 years ago #

    I'm trying to change the sidebar on different pages.
    follwoing the method seen here: http://www.quickonlinetips.com/archives/2007/11/how-to-create-multiple-dynamic-sidebars-for-wordpress-widgets/

    On the custom template, where normally would appear the line:
    <?php get_sidebar(); ?>

    I have replaced with:

    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar('sidebar2') ) : ?>
    <?php endif; ?>

    I get the widgets I supplied for sidebar2 but none of the sidebar formatting. How do I get the sidebar to look right?

    Here is am example of the page using sidebar2
    http://www.tomsemmes.com/blog/about/
    and here is how the sidebar looks correctly formatted:
    http://www.tomsemmes.com/blog/

  2. esmi
    Forum Moderator
    Posted 6 years ago #

    You now need to edit function.php to add some markup and styling the dynamic sidebar so that it resembles your static sidebar. There's an example of how to do this about halfway down the page at:

    http://codex.wordpress.org/Widgetizing_Themes

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.