Forums

Widget Ready Theme But No Sidebars Defined? (5 posts)

  1. jleegirl
    Member
    Posted 4 years ago #

    I just uploaded a newly created theme that is widget-ready.

    sidebar.php has this code included:

    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar_left') ) : else : ?>

    But... when I go to Presentation then Widgets I get "No Sidebars Defined", etc. etc.

    Does this have something to do with the fact that I'm using a 3 column theme (with two sidebars on the right)?

    Does anyone know how I can get my widgets working? Thanks in advance for any assistance!

    Debbie

  2. moshu
    Member
    Posted 4 years ago #

    "Widgetized" themes need to have a functions.php file in their folder, if I remember well.

  3. jleegirl
    Member
    Posted 4 years ago #

    I do have a functions.php file. Is there code that I should add to it? And if so, where do I insert it?

    Thanks!

  4. josepo
    Member
    Posted 4 years ago #

    yes...u need to add something like this...
    <?php
    if (function_exists(’register_sidebars’)) register_sidebars(1, array(’before_widget’ => ”,’after_widget’ => ”));
    ?>

    search google for widgetising wordpress

    here is one of the result.
    http://www.wpsnap.com/blog/?p=99

  5. Adam Brown
    Member
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic