From fa6ca78df76d09940b6ede15eb0dc95889a988d5 Mon Sep 17 00:00:00 2001 From: Joshua Roy Date: Thu, 15 Feb 2018 15:32:34 -0500 Subject: [PATCH 1/2] Removing title tag and adding fall back code incase the child theme doesn't have title-tag support --- functions.php | 10 ++++++++++ header.php | 1 - 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index e814393..43be5cc 100644 --- a/functions.php +++ b/functions.php @@ -296,4 +296,14 @@ function uc_redirect_403() { } add_action( 'template_redirect', 'uc_redirect_403' ); + +//Add titme tag if theme doesn't have title-tag theme support +if ( ! function_exists( '_wp_render_title_tag' ) ) { + function theme_slug_render_title() { +?> +<?php wp_title( '|', true, 'right' ); ?> + \ No newline at end of file diff --git a/header.php b/header.php index 9cfbc08..7ae63e1 100644 --- a/header.php +++ b/header.php @@ -28,7 +28,6 @@ if ( apply_filters( 'load_custom_header', false ) ) { -<?php wp_title( '|', true, 'right' ); ?> From a84745094378ce71e12651aa55e2e9d847955d26 Mon Sep 17 00:00:00 2001 From: Joshua Roy Date: Thu, 15 Feb 2018 15:35:55 -0500 Subject: [PATCH 2/2] typo --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 43be5cc..c0cdc92 100644 --- a/functions.php +++ b/functions.php @@ -297,7 +297,7 @@ function uc_redirect_403() { add_action( 'template_redirect', 'uc_redirect_403' ); -//Add titme tag if theme doesn't have title-tag theme support +//Add title tag if theme doesn't have title-tag theme support if ( ! function_exists( '_wp_render_title_tag' ) ) { function theme_slug_render_title() { ?>