From 2ac8d760e65f444f833bec9bc99cac786630ce7b Mon Sep 17 00:00:00 2001 From: JC Date: Tue, 5 Sep 2023 03:08:34 +0800 Subject: [PATCH] WDSUS-4 - Remove extra functions and fix content issue --- comments.php | 2 +- inc/setup/content-width.php | 23 ---------- inc/setup/setup.php | 43 ------------------- inc/template-tags/print-entry-footer.php | 4 +- template-parts/content-page.php | 8 ++-- template-parts/content-password-protected.php | 2 +- template-parts/content-search.php | 6 +-- template-parts/content.php | 4 +- 8 files changed, 13 insertions(+), 79 deletions(-) delete mode 100644 inc/setup/content-width.php diff --git a/comments.php b/comments.php index 3550c166b..9ccc951df 100644 --- a/comments.php +++ b/comments.php @@ -21,7 +21,7 @@ } ?> -
+

esc_html__( 'Primary Menu', 'wd_s' ), - 'footer' => esc_html__( 'Footer Menu', 'wd_s' ), - 'mobile' => esc_html__( 'Mobile Menu', 'wd_s' ), ] ); @@ -69,18 +67,6 @@ function setup() { ] ); - // Set up the WordPress core custom background feature. - add_theme_support( - 'custom-background', - apply_filters( - 'wd_s_custom_background_args', - [ - 'default-color' => 'ffffff', - 'default-image' => '', - ] - ) - ); - // Custom logo support. add_theme_support( 'custom-logo', @@ -99,39 +85,10 @@ function setup() { // Gutenberg support for full-width/wide alignment of supported blocks. add_theme_support( 'align-wide' ); - // Gutenberg defaults for font sizes. - add_theme_support( - 'editor-font-sizes', - [ - [ - 'name' => __( 'Small', 'wd_s' ), - 'size' => 12, - 'slug' => 'small', - ], - [ - 'name' => __( 'Normal', 'wd_s' ), - 'size' => 16, - 'slug' => 'normal', - ], - [ - 'name' => __( 'Large', 'wd_s' ), - 'size' => 36, - 'slug' => 'large', - ], - [ - 'name' => __( 'Huge', 'wd_s' ), - 'size' => 50, - 'slug' => 'huge', - ], - ] - ); - // Gutenberg editor styles support. add_theme_support( 'editor-styles' ); add_editor_style( 'build/index.css' ); - // Gutenberg responsive embed support. - add_theme_support( 'responsive-embeds' ); } add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' ); diff --git a/inc/template-tags/print-entry-footer.php b/inc/template-tags/print-entry-footer.php index ae92a017c..f24200066 100644 --- a/inc/template-tags/print-entry-footer.php +++ b/inc/template-tags/print-entry-footer.php @@ -44,7 +44,7 @@ function print_entry_footer() { esc_html__( 'Edit %s', 'wd_s' ), wp_kses_post( get_the_title( '"', '"', false ) ) ), - '', - '' + '' ); } diff --git a/template-parts/content-page.php b/template-parts/content-page.php index cb08ca751..171b711ee 100644 --- a/template-parts/content-page.php +++ b/template-parts/content-page.php @@ -9,7 +9,7 @@ ?> -
> +
>
', '' ); ?> @@ -29,7 +29,7 @@
-