From 885acdc298a3e81fcc47f4a4e63c5df3bb8f04f9 Mon Sep 17 00:00:00 2001 From: jorge-vitrubio Date: Tue, 1 Feb 2022 08:37:21 +0100 Subject: [PATCH] mods in the theme to show widget area at top of home page --- hangar/home.php | 9 +++++++++ hangar/index.php | 6 ++++++ hangar/library/widgetized-sidebars.php | 14 +++++++------- hangar/loop.php | 5 ++++- 4 files changed, 26 insertions(+), 8 deletions(-) diff --git a/hangar/home.php b/hangar/home.php index a4a7260..cc98f16 100644 --- a/hangar/home.php +++ b/hangar/home.php @@ -10,6 +10,15 @@ ?> + + + + + +
diff --git a/hangar/index.php b/hangar/index.php index eaeb6a7..92db298 100644 --- a/hangar/index.php +++ b/hangar/index.php @@ -10,6 +10,12 @@
+ + +
diff --git a/hangar/library/widgetized-sidebars.php b/hangar/library/widgetized-sidebars.php index 0c722bb..558c402 100644 --- a/hangar/library/widgetized-sidebars.php +++ b/hangar/library/widgetized-sidebars.php @@ -7,7 +7,7 @@ function ari_widgets_init() { register_sidebar( array( 'name' => __( 'Primary Widget Area', 'hangar' ), 'id' => 'primary-widget-area', - 'description' => __( 'Here you can put one or two of your main widgets (like an intro text, your page navigation or some social site links) in your left sidebar. The sidebar is fixed, so the widgets content will always be visible, even when scrolling down the page.', 'ari' ), + 'description' => __( 'Here you can put all the widget elements to be shown in the left side menu.', 'ari' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', @@ -18,15 +18,15 @@ function ari_widgets_init() { register_sidebar( array( 'name' => __( 'Secondary Widget Area', 'hangar' ), 'id' => 'secondary-widget-area', - 'description' => __( 'Here you can put all the additional widgets for your right sidebar.', 'hangar' ), - 'before_widget' => '
  • ', - 'after_widget' => '
  • ', - 'before_title' => '

    ', - 'after_title' => '

    ', + 'description' => __( 'Here you can put all the additional widgets elements to be shown in the HomePage big announcement.', 'hangar' ), + 'before_widget' => '', + 'after_widget' => '', + 'before_title' => '', + 'after_title' => '', ) ); } /* Register sidebars by running ari_widgets_init() on the widgets_init hook. */ add_action( 'widgets_init', 'ari_widgets_init' ); -?> \ No newline at end of file +?> diff --git a/hangar/loop.php b/hangar/loop.php index d5855f3..2e4f16e 100644 --- a/hangar/loop.php +++ b/hangar/loop.php @@ -1,3 +1,6 @@ + @@ -42,4 +45,4 @@ max_num_pages > 1 ) : ?>

    - \ No newline at end of file +