WordPress.org

Ready to get started?Download WordPress

Forums

Widget side bar problem (2 posts)

  1. rasco
    Member
    Posted 6 years ago #

    Hi, i was using a theme that downloaded from here, but it did not came with widget .
    i created the function.php and added the following

    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar();
    ?>

    when i go to presentation =>widgets=> i see my sidebar1 , i drag and drop the available widget and i save it. but it does not work my sidebar continues being the default one.
    any ideas?

    cheers.

  2. MichaelH
    Member
    Posted 6 years ago #

    You need some code in your sidebar.php file also:

    http://automattic.com/code/widgets/themes/

    Or look at how the WordPress Default 1.6 theme does it. See wp-content/themes/default/sidebar.php for example.

Topic Closed

This topic has been closed to new replies.

About this Topic