@@ 125-135 (lines=11) @@ | ||
122 | * |
|
123 | * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar |
|
124 | */ |
|
125 | function lighthouse_widgets_init() { |
|
126 | register_sidebar( array( |
|
127 | 'name' => esc_html__( 'Sidebar', 'lighthouse' ), |
|
128 | 'id' => 'sidebar-1', |
|
129 | 'description' => '', |
|
130 | 'before_widget' => '<section id="%1$s" class="widget %2$s">', |
|
131 | 'after_widget' => '</section>', |
|
132 | 'before_title' => '<h2 class="widget-title">', |
|
133 | 'after_title' => '</h2>', |
|
134 | ) ); |
|
135 | } |
|
136 | add_action( 'widgets_init', 'lighthouse_widgets_init' ); |
|
137 | ||
138 | /** |
@@ 278-289 (lines=12) @@ | ||
275 | add_action( 'widgets_init', 'footer_widgets_init' ); |
|
276 | ||
277 | //Blog sidebar widgets |
|
278 | function blog_widgets_init() { |
|
279 | ||
280 | register_sidebar( array( |
|
281 | 'name' => 'Blog Sidebar', |
|
282 | 'description' => __( 'Widgets displayed at blog page.', 'lighthouse' ), |
|
283 | 'id' => 'blog_widgets', |
|
284 | 'before_widget' => '<div id="%1$s" class="widget %2$s">', |
|
285 | 'after_widget' => '</div>', |
|
286 | 'before_title' => '<h3 class="widget-title">', |
|
287 | 'after_title' => '</h3>', |
|
288 | ) ); |
|
289 | } |
|
290 | add_action( 'widgets_init', 'blog_widgets_init' ); |