Okay, okay…!! I’ve been getting lots of emails from WordPress bloggers looking for a copy of my widgetized adaptation of the Leia theme. I’ll try to get a sanitized edition (with EF-specific stuff removed) available for download sometime in the near future. In the meantime, you can insert this code snippit into your theme’s sidebar.php file, replacing both left (izquierda) and right (derecha) sidebar content blocks:
<div id="izquierda">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
<li><h2>Categories</h2>
<ul>
<?php wp_list_cats(); ?>
</ul>
</li>
</ul>
<ul>
<?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>
</ul>
<?php endif; ?>
</div>
<div id="derecha">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
<?php get_links_list(); ?>
</ul>
<?php endif; ?>
</div>
AND– make sure to enter this into your theme’s functions.php file (you might have to create the file if it doesn’t exist already):
<?php
if ( function_exists('register_sidebars') ) register_sidebars(2);
?>
That’s it! You should be widgetized!



Ah, I see what’s wrong. Quotes came through formatted improperly. Try it again with the fixed code, above…