If you are looking forward to create your own widget area in wordpress, then you are at right place. Creating custom widget area is something like creating your own sidebar widget area, but with the flexibility to place it anywhere in between your template code, so that might be in header.php, footer.php, page.php or index.php. And with the help of which you can display widgets of your own choice.

Wordpress custom widget area

1. Locate functions.php in your active theme folder and add the bellow code in it.

if ( function_exists('register_sidebar') )
    register_sidebar( array(
   'name' => __( 'My Custom Widget Area - 1'),
   'id' => 'myCustomWidgetArea1',
   'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ),
   'before_widget' => '<aside id="%1$s" class="widget %2$s">',
   'after_widget' => "</aside>",
   'before_title' => '<h3 class="widget-title">',
   'after_title' => '</h3>',
   ) );

2. Next step is calling widgets area from theme template files. For that you just have to place this code in the div or any other container you wish. You can place the bellow code in – header.php, footer.php, page.php, index.php, single.php or any other template related files.

<?php
 // Custom widget Area Start
 if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('My Custom Widget Area - 1') ) : ?>
<?php endif;
// Custom widget Area End
?>

Here you are done, your widget area is ready to drag your widgets in it. What are you waiting for go ahead and drag widgets to display on your website.

If you like you can also view our post to enable PHP code exicution in text widget

Related posts:

Author:

is co-founder and author of tips4developer. By profession he is a WordPress and Joomla developer.

11 Responses so far.

  1. Site web says:

    Spot on with this write-up, I truly suppose this web site wants much more consideration. I’ll most likely be again to read rather more, thanks for that info.

  2. Fantastic goods from you, man. I’ve understand your stuff previous to and you are just extremely excellent. I really like what you’ve acquired here, really like what you’re saying and the way in which you say it. You make it entertaining and you still care for to keep it sensible. I can not wait to read far more from you. This is actually a great website.

  3. Excellent beat ! I wish to apprentice while you amend your website, how can i subscribe for a blog website? The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear ideaI’m really impressed with your writing skills as well as with the layout on your blog. Is this a paid theme or did you customize it yourself? Anyway keep up the nice quality writing, it is rare to see a great blog like this one today..

    • Amit says:

      Thanks your fantastic comment. You can subscribe to my blog just by entering your email ID in the text box displays on the left side “Subscribe to email feed”. And get up to date with new and fresh post entries each day

  4. Jody Katzman says:

    Does your blog have a contact page? I’m having trouble locating it but, I’d like to shoot you an e-mail. I’ve got some suggestions for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it expand over time.

  5. I have to express my thanks to this writer just for bailing me out of this type of trouble. Right after looking through the internet and finding notions which were not beneficial, I thought my life was over. Being alive without the approaches to the difficulties you’ve fixed as a result of this article content is a crucial case, and ones that would have badly affected my career if I had not encountered your website. That know-how and kindness in taking care of all things was helpful. I am not sure what I would’ve done if I hadn’t come upon such a stuff like this. I can now look forward to my future. Thank you very much for the expert and amazing help. I will not hesitate to suggest the blog to any individual who ought to have guidelines on this area.

  6. Poonam Jain says:

    Thanks for the data – just what I was looking for.It would sure be sweet if this was relatively easy for a non-coder to integrate into WP (no Java!) – just HTML/CSS:

  7. Born says:

    Thanks so much dude, you rock!

  8. wp community says:

    It only took 10minutes to create a custom widget area following your instructions. That was an easy to understand explanation. Thanks loads

  9. Geoff Veitzkoff says:

    Wow thanks for the great reading. Made it easy to understand, and made me realize with some effort I can do it. Ginger


Subscribe to email feed

  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin

Joomla – Allowing

Recently I got an requirement to add multiple email ID’s ...

WordPress - Controll

Page Lists Plus is one of the most use full ...

IE compatible mode â

I noticed most of the web developers and designers hate ...

Adding PayPal Donate

Adding PayPal Donate Button in WordPress Post and Page are ...

Multi Browsers CSS H

Here I am sharing few of the very useful multi ...

Joomla – Allowing

Recently I got an requirement to add multiple email ID’s ...

Virtuemart – Setti

In my last project I got a requirement from my ...

3 Best Security Ext

Joomla is one of the fastest growing and best CMS ...

Joomla Conditional S

With the help of Joomla conditional statements you will able ...

Virtuemart - Special

Here I am sharing the virtuemart code snippet to display ...