Unable to widgetize theme
-
Hey everyone,
I’ve been trying and working my ass off to widgetize my theme. Got this Deichnetz Theme, running WP 2.0.
This theme hasn’t got a functions.php, so created one with the obligatory php-code. Than I added the code in the sidebar.php to make the thing dynamic (activating plugin course) and than my sidebar disappears and I get this error about the last line of my sidebar.php (which is a /div tag>.
Can anyone help me to Widgetize my theme? My sidebarcode is:
<!-- begin sidebar -->
<div id="sidebar">
<h4> </h4>
<div id="sidemenu">
<ul> || PUTTING THE DYNAMIC PHPCODE HERE
<li id="categories"><h2><?php _e('Categories:'); ?></h2>
<ul>
<?php wp_list_cats(); ?>
</ul>
</li>
<?php get_links_list(); ?>
<li id="archives"><h2><?php _e('Archives:'); ?></h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<?php if (function_exists('wp_theme_switcher')) { ?>
<li><h2><?php _e('Themes'); ?></h2>
<?php wp_theme_switcher('dropdown'); ?>
</li>
<?php } ?>
</ul>
</div>
<h5> </h5><div class="feeds"><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS°'); ?>">rss</a></div><!-- feeds -->
<div class="feeds"><a href="<?php bloginfo('atom_url'); ?>" title="atom feed°">xml</a></div></div>
Any ideas what to do? Btw, should I CHMOD any Widget folders too (to make sure)? Hope someone can HELP me! ??
- The topic ‘Unable to widgetize theme’ is closed to new replies.