Add a dynamic Sidebar for Widgets

With these snippets, you can enable a dynamic sidebar for widgets in your wordpress theme. Paste the snippets in your sidebar.php and your the functions.php file.

Other relevant snippets: