inkthemes_widgets_init

Register widgetized areas, including two sidebars and four widget-ready columns in the footer.

Description

inkthemes_widgets_init(); 

To override twentyten_widgets_init() in a child theme, remove the action hook and add your own function tied to the init hook.


Usage

  1. if ( !function_exists( 'inkthemes_widgets_init' ) ) { 
  2. require_once '/functions/inkthemes-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = inkthemes_widgets_init(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/functions/inkthemes-functions.php  
  1. function inkthemes_widgets_init() { 
  2. // Area 1, located at the top of the sidebar. 
  3. register_sidebar(array( 
  4. 'name' => PRIMARY_WIDGET,  
  5. 'id' => 'primary-widget-area',  
  6. 'description' => THE_PRIMARY_WIDGET,  
  7. 'before_widget' => '',  
  8. 'after_widget' => '',  
  9. 'before_title' => '<h3>',  
  10. 'after_title' => '</h3>',  
  11. )); 
  12. // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. 
  13. register_sidebar(array( 
  14. 'name' => SECONDRY_WIDGET,  
  15. 'id' => 'secondary-widget-area',  
  16. 'description' => THE_SECONDRY_WIDGET,  
  17. 'before_widget' => '',  
  18. 'after_widget' => '',  
  19. 'before_title' => '<h3>',  
  20. 'after_title' => '</h3>',  
  21. )); 
  22. // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. 
  23. register_sidebar(array( 
  24. 'name' => RIGHT_WIDGET,  
  25. 'id' => 'home-page-widget-area',  
  26. 'description' => THE_RIGHT_WIDGET,  
  27. 'before_widget' => '',  
  28. 'after_widget' => '',  
  29. 'before_title' => '<h3>',  
  30. 'after_title' => '</h3>',  
  31. )); 
  32. // Area 3, located in the footer. Empty by default. 
  33. register_sidebar(array( 
  34. 'name' => FIRST_FOOTER_WIDGET,  
  35. 'id' => 'first-footer-widget-area',  
  36. 'description' => THE_FIRST_FOOTER_WIDGET,  
  37. 'before_widget' => '',  
  38. 'after_widget' => '',  
  39. 'before_title' => '<h3>',  
  40. 'after_title' => '</h3>',  
  41. )); 
  42. // Area 4, located in the footer. Empty by default. 
  43. register_sidebar(array( 
  44. 'name' => SECONDRY_FOOTER_WIDGET,  
  45. 'id' => 'second-footer-widget-area',  
  46. 'description' => THE_SECONDRY_FOOTER_WIDGET,  
  47. 'before_widget' => '',  
  48. 'after_widget' => '',  
  49. 'before_title' => '<h3>',  
  50. 'after_title' => '</h3>',  
  51. )); 
  52. // Area 5, located in the footer. Empty by default. 
  53. register_sidebar(array( 
  54. 'name' => THIRD_FOOTER_WIDGET,  
  55. 'id' => 'third-footer-widget-area',  
  56. 'description' => THE_THIRD_FOOTER_WIDGET,  
  57. 'before_widget' => '',  
  58. 'after_widget' => '',  
  59. 'before_title' => '<h3>',  
  60. 'after_title' => '</h3>',  
  61. )); 
  62. // Area 6, located in the footer. Empty by default. 
  63. register_sidebar(array( 
  64. 'name' => FOURTH_FOOTER_WIDGET,  
  65. 'id' => 'fourth-footer-widget-area',  
  66. 'description' => THE_FOURTH_FOOTER_WIDGET,  
  67. 'before_widget' => '',  
  68. 'after_widget' => '',  
  69. 'before_title' => '<h3>',  
  70. 'after_title' => '</h3>',  
  71. ));