How To Add Widget Support To WordPress Theme?

Posted by


Many themez are not supporting widget. In order to make it widget supported you need to perform these steps:

1:  Take a complete backup of your current theme
2:  Open functions.php file of your theme. Add this code at the top of the page and then save and upload the file:

if ( function_exists(’register_sidebar’) )

3:  Open sidebar.php file and add this line of code directly below the <ul> tag.

if ( !function_exists(’dynamic_sidebar’)
|| !dynamic_sidebar() ):

4:  Scroll down at the bottom of the sidebar.php file until you see the closing </ul> tag. Now, above it add this code then save and upload your file.

<?php endif; ?>

That’s it!


Shane G.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.