A Simple Edit WordPress Theme to Support Sidebar Widgets

What do you do, when after an exhaustive search for the perfect WordPress theme that you love, all of a sudden you run into an error message saying that your new theme doesn’t support your sidebar widgets?

Try these steps to edit the sidebar widgets to fix it!

1. Backup your theme files and folders.

2. Edit the functions.php file, and paste these lines of code to the top of the file — and Save It.

<?php
if ( function_exists(’register_sidebar’) )
register_sidebar();
?>

3. Edit the sidebar.php file, and paste these lines of code right below of the first <ul> tag of the file.

<?php if ( !function_exists(’dynamic_sidebar’)
|| !dynamic_sidebar() ) : ?>

4. Still inside the sidebar.php file, paste these line of code right above of the last </ul> tag of the file and save it.

<?php endif; ?>

Now try to edit your sidebar widgets, it should be working now.

Incoming search terms for the article:

Related Posts

Premium WordPress Themes: 60 Awesome Layouts

WordPress Theme Frameworks: Beginners Demand Complete Functionality

The Best Combination of Plugins To Revamp Your WordPress Blog

12 tutorials to build your own WordPress theme option page