WordPress uses the theme defined sidebars as widget containers. In most of the themes you will find that sidebars are located on right/left hand of the post content. Maybe we will want to define sidebars in another position of the theme.
For example if we want to show the language selector widget in the header area. We should be able to define a custom sidebar in the header of the theme.
First of all we need to register a new sidebar in functions.php, in the root folder of our theme. We will use the register_sidebar WordPress function to do it. You can copy and paste the following code snippet:
[Read more…] about WordPress: Widgets anywhere using Custom Sidebars