how to create widget area in wordpress theme

hi i want to explain how to create widget in wordpress
follow these step to create widget are in wordpress theme
1-Go in theme folder and register your widget in funtion.php file
2-Go in sidebar file and make a copy rename it like sidebar-homepagesidebar
3-Write your code using widget name which you registered in function.php file
4-Now you can access this side bar calling wordpress function getsidebar(homepagesidebar) on home page or any where.

1 comment:

  1. Good information to know and right to the point. Thanks for this well written post, i'll follow up for more updates if you keep posting them
    Vacancies in Govt Jobs