How to widgetize your Wordpress theme
June 02, 2008 | Glenn Haggard | Comments 1
Ever download a free Wordpress theme and try to use a widget and it doesn’t work? This should help.
- From the admin page click on design, then theme editor.
- Click on sidbar
- Add the line “<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar() ) : ?>” after the first <ul>
- Then, put the line “<?php endif; ?>” before the ending </ul>
Once this is done only the widgets that are added to the sidebar should show up. If there are additional widgets on your sidebar then something isn’t working correctly.
Filed Under: Wordpress



great info…