Hey everybody I want to let you know that I have undertaken the grueling task of getting the heck away from WordPress. I was so sick of the problems and updates I had to do all the time. I am now using my ezbloo system and I am integrating all my old posts into the new system. It sucks, but in the end, I will save bundles of time. I needed to keep things simple and that is why I created ezbloo. I'll have more on this later for you guys after I am done with the total integration of my old posts here. So if you are looking for a post and need it faster, shoot me an email and I will make it a priority. [email protected]

So you want to know how to add a widget in WordPress?  Well lets get right into it:

Step #1 Find you functions.php file in your WordPress theme and look for this code

register_sidebar( array(
you will find several lines of code look for this

) );
edits

at the end of it and add the following make sure you leave the last "}" because you will need that:

	register_sidebar( array(

		'name' => __( 'maximus-great-widget' ),

		'id' => 'header-widget',

		'description' => __( 'An optional widget area for your site header' ),

		'before_widget' => '<div id="the-maximus-widget">',

                'after_widget' => "</div>",

		'before_title' => '<div id="the-maximus-widget-title">',

                'after_title' => '</div>',

	) );

You want to give the widget a name you can see the name of this widget is maximus-great-widget.   Notice we gave it an id called header-widget   Notice we gave the widget a div tag called the-maximus-widget and then we closed the tag with the after_widget code with a closing div tag.   Notice that we gave the widget a title div tag as well called the-maximus-widget-title   You can change all these names but make sure that you remember what you named them.

 
  Step #2 Now we can add the code to where we want the contents of the widget to appear. I want it to appear in the header of the theme that I am editing so I will put it in my header.php file in my theme.  
 <?php if ( ! dynamic_sidebar( 'maximus-great-widget' ) ); ?>

  If you want to say updated on more WordPress tutorials and more subscribe to my feed and we will email them to you as we post them.