@@ 5-15 (lines=11) @@ | ||
2 | /** |
|
3 | Sidebar widget area (theme default). |
|
4 | **/ |
|
5 | function lighthouse_widgets_init() { |
|
6 | register_sidebar( array( |
|
7 | 'name' => esc_html__( 'Sidebar', 'lighthouse' ), |
|
8 | 'id' => 'sidebar-1', |
|
9 | 'description' => '', |
|
10 | 'before_widget' => '<section id="%1$s" class="widget %2$s">', |
|
11 | 'after_widget' => '</section>', |
|
12 | 'before_title' => '<h2 class="widget-title">', |
|
13 | 'after_title' => '</h2>', |
|
14 | ) ); |
|
15 | } |
|
16 | ||
17 | add_action( 'widgets_init', 'lighthouse_widgets_init' ); |
|
18 | ||
@@ 65-76 (lines=12) @@ | ||
62 | ||
63 | ||
64 | //Blog sidebar widgets |
|
65 | function blog_widgets_init() { |
|
66 | ||
67 | register_sidebar( array( |
|
68 | 'name' => 'Blog Sidebar', |
|
69 | 'description' => __( 'Widgets displayed at blog page.', 'lighthouse' ), |
|
70 | 'id' => 'blog_widgets', |
|
71 | 'before_widget' => '<div id="%1$s" class="widget %2$s">', |
|
72 | 'after_widget' => '</div>', |
|
73 | 'before_title' => '<h3 class="widget-title">', |
|
74 | 'after_title' => '</h3>', |
|
75 | ) ); |
|
76 | } |
|
77 | ||
78 | add_action( 'widgets_init', 'blog_widgets_init' ); |