
In our case we are going to insert in in the footer area of the theme so open the Footer (footer.php) file and insert the following code just above the ‘footer’ division:įinally, lets put a little style to all the ‘footer-sidebar’ divisions that we just introduced. Now lets insert the siderbars where we want them in the WordPress theme. Insert the Sidebars In the WordPress Theme The above will register 4 sidebars (one that you already have and three more that you are about to introduce in the footer area of your wordpress theme). Say for example you have one sidebar in your theme and you want to add three rows of sidebars in the footer area so you can put widgets then overwrite the code with the following: Once you find the above line then take a look at the the next line which should look similar to one of the followings depending on how many sidebars you have: If ( function_exists('register_sidebar') ) Now Search for the following line in your Theme Functions (functions.php) Go to the WordPress theme editor and open the Theme Functions (functions.php) file.

Register the Sidebars in the WordPress Theme Our how to use firebug tutorial should come in handy for this.ĭo the following if the theme you are using is a bit old: 1. Customize it a little to match your needs. Style the footer widget area to your likingĪdd the following block of CSS code to your theme’s style.css file to add some basic styling to the footer widgets you just added.

Open your footer.php file and insert the following block of code where you want to show the footer widgets (this will show the 3 footer widget areas if they have any widgets in them):ģ. Show the footer widget area in your theme The following screenshot is taken from the Twenty Twelve theme’s functions.php file which should give you some perspective as to where you need to insert the above code block.Ģ.

'description' => 'Appears in the footer area', That should take you to the area where all the sidebars are registered in your theme.Īdd the following block of code just below the other sidebar registration code (we are telling it to register 3 footer widget areas): Open the functions.php file from the WordPress Theme Editor and search for the following line of code: Keep a backup copy of your “ functions.php” and “ footer.php” file just in case you make a mistake when making the code changes.ĭo the following if your theme is relatively new.
