From 35e279dd56b49884c994cf3025363c2bd4c6db73 Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Mon, 6 Aug 2018 08:53:22 -0500 Subject: [PATCH] footer sidebar start --- footer.php | 1 + functions.php | 16 +++++++++++++++- index.php | 1 - sidebar-footer-sponsors.php | 5 +++++ 4 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 sidebar-footer-sponsors.php diff --git a/footer.php b/footer.php index 258d110..64969e9 100644 --- a/footer.php +++ b/footer.php @@ -1,3 +1,4 @@ diff --git a/functions.php b/functions.php index df588a8..27a966a 100644 --- a/functions.php +++ b/functions.php @@ -59,8 +59,22 @@ function register_ildi_menus() { )); } +function ildi_register_sidebars() { + register_sidebar( + array( + 'id' => 'footer-sponsors', + 'name' => __( 'Footer Sponsors', 'ildi' ), + 'description' => __( 'This is the sponsor and partner logos section of the footer.', 'ildi' ), + 'before_widget' => '
', + 'after_widget' => '
', + 'before_title' => '

', + 'after_title' => '

', + ) + ); +} // add_action('init', 'register_ildi_menu'); add_action( 'after_setup_theme', 'register_ildi_menus', 0 ); -add_action('wp_enqueue_scripts', 'ildi_styles'); +add_action( 'wp_enqueue_scripts', 'ildi_styles' ); +add_action( 'widgets_init', 'ildi_register_sidebars'); ?> diff --git a/index.php b/index.php index 4e2f59a..5100038 100644 --- a/index.php +++ b/index.php @@ -29,7 +29,6 @@ - diff --git a/sidebar-footer-sponsors.php b/sidebar-footer-sponsors.php new file mode 100644 index 0000000..f3a34c5 --- /dev/null +++ b/sidebar-footer-sponsors.php @@ -0,0 +1,5 @@ + +
+ +
+