fix widgets
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
2 changed files
with
5 additions
and
3 deletions
| ... | @@ -8,4 +8,4 @@ require_once 'search-extras.php'; | ... | @@ -8,4 +8,4 @@ require_once 'search-extras.php'; |
| 8 | require_once 'disable-comments.php'; | 8 | require_once 'disable-comments.php'; |
| 9 | require_once 'blocks.php'; | 9 | require_once 'blocks.php'; |
| 10 | require_once 'side-menu.php'; | 10 | require_once 'side-menu.php'; |
| 11 | require_once 'widgets.php'; | 11 | require_once 'widgets-area.php'; | ... | ... |
| 1 | <?php | 1 | <?php |
| 2 | function wpb_widgets_init() { | 2 | function custom_widgets_init() { |
| 3 | 3 | ||
| 4 | register_sidebar( array( | 4 | register_sidebar( array( |
| 5 | 'name' => 'Custom Footer Left Widget Area', | 5 | 'name' => 'Custom Footer Left Widget Area', |
| ... | @@ -20,4 +20,6 @@ function wpb_widgets_init() { | ... | @@ -20,4 +20,6 @@ function wpb_widgets_init() { |
| 20 | ) ); | 20 | ) ); |
| 21 | 21 | ||
| 22 | } | 22 | } |
| 23 | add_action( 'widgets_init', 'wpb_widgets_init' ); | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 23 | add_theme_support( 'widgets' ); | ||
| 24 | |||
| 25 | add_action( 'widgets_init', 'custom_widgets_init' ); | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment