Thursday, June 23, 2011

::::|| VU ||:::: Customizing WordPress Theme Sidebar - [eTechy101.com]

A new article has been posted on eTechy101.com.
The post title is 'Customizing WordPress Theme Sidebar'. Below is a preview of
the post.

With a WordPress Sidebar Template, we need to make sure it's "widgetized".
In this tutorial, we would use 2 widget areas, since with it the code can be
used with both 2 and 3 column themes. The widget areas would be registered in
the functions.php code as follows:

function theme_widgets_init() {
register_sidebar( array {
'name' => 'Primary Widget Area',
'id' => 'primary_widget_area',
'before_widget' => '<li id="%1$s">',
'after_widget' => "</li>",
'before_title' => '<h3>',
'after_title' => '</h3>'
) ) ;

register_sidebar( array {
'name' => 'Secondary Widget Area',
'id' => 'secondary_widget_area',
'before_widget' => '<li id="%1$s">',
'after_widget' => "</li>",
'before_title' => '<h3>',
'after_title' => '</h3>'
) ) ;
}
add_action( 'init', 'theme_widgets_init' );

You may view the full post at
http://www.etechy101.com/wordpress/customizing-wordpress-theme-sidebar.html

You received this e-mail because you asked to be notified when new updates are
posted.

Thanks for being a valued member of eTechy101.com

Best regards,

eTechy
http://www.etechy101.com

--
For study materials, past papers and assignments,
Join VU School at www.VusCool.com
and www.VUGuys.com
CoooL Virtual University Students Google Group.
To post to this group, send email to coool_vu_students@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/coool_vu_students?hl=en

No comments:

Post a Comment