From efa3a25d9cc33cf08f335c79d32211b5ba62ab14 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Sun, 2 Jun 2019 12:05:20 +0200 Subject: [PATCH] support for widgets --- liquet/functions.php | 13 ++++++++ liquet/singular.php | 70 +++++++++++++++++++++++++++++++------------- liquet/style.css | 9 ++++++ 3 files changed, 71 insertions(+), 21 deletions(-) diff --git a/liquet/functions.php b/liquet/functions.php index f8d7357..9dd8348 100644 --- a/liquet/functions.php +++ b/liquet/functions.php @@ -14,6 +14,19 @@ add_action( 'wp_enqueue_scripts', function () { wp_enqueue_style( 'fonts', get_template_directory_uri() . '/vendor/fonts/import.css' ); } ); +add_action( 'widgets_init', function () { + + register_sidebar( array( + 'name' => 'Below posts', + 'id' => 'below_posts', + 'before_widget' => '
', + 'after_widget' => '
', + 'before_title' => '

', + 'after_title' => '

', + ) ); + +} ); + add_action( 'admin_init', function () { add_settings_section( 'section-link', 'Links', null, 'theme-options' ); diff --git a/liquet/singular.php b/liquet/singular.php index 1b72ba7..8dfd645 100644 --- a/liquet/singular.php +++ b/liquet/singular.php @@ -22,36 +22,64 @@ $dates = getDates();
previous
-
+