Create a custom widget area for your wordpress site simply by following code.

You have to copy and paste below code at your wordpress function.php or anywhere where you can add such functions for your site.

function.php is places right at your theme directory.

Now a new Widget Area ‘Custom Widget Area’ will be shown at your admin backend. You can add widgets to this widget area from widget options.

Where will be widgets shown??

Now you need to place this widget area to a wordpress template. Where all the widgets inside this widget area will be shown. You have to add below code at the template file.

Now you have to set a template to desired page.


NOTE: Default page template is page.php and default post template is single.php

Must See:
How to add widgets to your widget area?

Leave a Reply