skt_pathway_widgets_init

The SKT Pathway skt pathway widgets init function.

Description

skt_pathway_widgets_init(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function skt_pathway_widgets_init() { 
  2. register_sidebar( array( 
  3. 'name' => __( 'Blog Sidebar', 'skt-pathway' ),  
  4. 'description' => __( 'Appears on blog page sidebar', 'skt-pathway' ),  
  5. 'id' => 'sidebar-1',  
  6. 'before_widget' => '<aside id="%1$s" class="widget %2$s">',  
  7. 'after_widget' => '</aside>',  
  8. 'before_title' => '<h3 class="widget-title">',  
  9. 'after_title' => '</h3>',  
  10. ) ); 
  11.  
  12. register_sidebar( array( 
  13. 'name' => __( 'Footer Widget 1', 'skt-pathway' ),  
  14. 'description' => __( 'Appears on Footer', 'skt-pathway' ),  
  15. 'id' => 'footer-1',  
  16. 'before_widget' => '<aside class="widget">',  
  17. 'after_widget' => '</aside>',  
  18. 'before_title' => '<h2 class="widget-title">',  
  19. 'after_title' => '</h2>',  
  20. ) ); 
  21.  
  22. register_sidebar( array( 
  23. 'name' => __( 'Footer Widget 2', 'skt-pathway' ),  
  24. 'description' => __( 'Appears on Footer', 'skt-pathway' ),  
  25. 'id' => 'footer-2',  
  26. 'before_widget' => '<aside class="widget">',  
  27. 'after_widget' => '</aside>',  
  28. 'before_title' => '<h2 class="widget-title">',  
  29. 'after_title' => '</h2>',  
  30. ) ); 
  31.  
  32. register_sidebar( array( 
  33. 'name' => __( 'Footer Widget 3', 'skt-pathway' ),  
  34. 'description' => __( 'Appears on Footer', 'skt-pathway' ),  
  35. 'id' => 'footer-3',  
  36. 'before_widget' => '<aside class="widget nomarg">',  
  37. 'after_widget' => '</aside>',  
  38. 'before_title' => '<h2 class="widget-title">',  
  39. 'after_title' => '</h2>',  
  40. ) ); 
  41.