| @@ 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' ); | |
| @@ 130-140 (lines=11) @@ | ||
| 127 | * | |
| 128 | * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar | |
| 129 | */ | |
| 130 | function lighthouse_widgets_init() { | |
| 131 | register_sidebar( array( | |
| 132 | 'name' => esc_html__( 'Sidebar', 'lighthouse' ), | |
| 133 | 'id' => 'sidebar-1', | |
| 134 | 'description' => '', | |
| 135 | 'before_widget' => '<section id="%1$s" class="widget %2$s">', | |
| 136 | 'after_widget' => '</section>', | |
| 137 | 'before_title' => '<h2 class="widget-title">', | |
| 138 | 'after_title' => '</h2>', | |
| 139 | ) ); | |
| 140 | } | |
| 141 | add_action( 'widgets_init', 'lighthouse_widgets_init' ); | |
| 142 | ||
| 143 | /** | |