Multiple Sidebar formatting (2 posts)

  1. TSemmes
    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
    and here is how the sidebar looks correctly formatted:

  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:


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.