Hi I'm looking for someone who can make a WP template (dual sidebars) widget-ready/aware. I've tried several things, but in my WP admin panel I still see the 'this template is not widget-aware' message. This is the theme
Create a functions.php file and insert the following code: <?php if ( function_exists('register_sidebar') ) register_sidebar(); ?> PHP: Then use the following code for your sidebars: <div id="sidebar"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <!-- your regualr non-widget sidebar content goes here as a fallback option --> <?php endif; ?> </div> PHP:
Dan yet again to the rescue. Dan, you helped me ages ago and write me a VERY LONG post explaining HTML+CSS over on Sitepoint. Would like to take this opportunity to thank you again. Thread: http://www.sitepoint.com/forums/showthread.php?t=513419 Your legendary post: http://www.sitepoint.com/forums/showpost.php?p=3621653&postcount=17
Heh, I remember that thread. I'd change display: block; to vertical-align: bottom; though - otherwise you wouldn't be able to use inline images such as smileys.
Thanks a million. It seems to be working. Just one more question: now i have one widgetized sitebar. How can can I also widgetize the right sidebar?
Oops! I posted too soon. The widget section in my control panel is visible, but when I try to add a widget, nothing ppears in neither of the sidebar columns...
there are widget plugins to make worpdress theme widget ready you can try those and follow the instruction of plugin
Sorry, I forgot you had multiple separate sidebars. Normally I tend to "fake" multiple sidebars by having them both called by the same sidebar.php file. Hang on, let me see what I can do (I make no guarantees this will work, however).