A Widget Ready WordPress Theme…

By on

So… you got this fabulous WordPress Theme, but it does not read widgets. That’s a huge bummer. But, Alpesh Nakars has a blog post on how to convert it to a widget ready theme.

  1. First find the functions.php and add this code…
    <?php
    if ( function_exists(’register_sidebar’) )
    register_sidebar();
    ?>
  2. Then trackdown sidebar.php and insert this code before the search box…
    //
    <?php if ( !function_exists(’dynamic_sidebar’)
    || !dynamic_sidebar() ) : ?> // added

    //
  3. After, find the bottom of sidebar.php and put this before the </div> at the bottom…
    //
    <?php endif; ?> // added
    //

Remember : Some themes are different, so make sure you check where do actually put this code. This is a scaled down version; for more information, click here.

Thanks for coming onboard!
We're excited to have you.