diff --git a/functions.php b/functions.php index e814393..c0cdc92 100644 --- a/functions.php +++ b/functions.php @@ -296,4 +296,14 @@ function uc_redirect_403() { } add_action( 'template_redirect', 'uc_redirect_403' ); + +//Add title 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' ); ?>