From ea9de3d4b13145b8c6c7fa2937504e6a742ffc65 Mon Sep 17 00:00:00 2001 From: 3err0 Date: Sat, 7 Mar 2020 16:56:25 +0800 Subject: [PATCH] pagetitle --- header.php | 8 +++++++- style.css | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/header.php b/header.php index db0bd22..c13d367 100644 --- a/header.php +++ b/header.php @@ -4,7 +4,13 @@ - <?php bloginfo( 'name' ); ?> + + <?php if(is_front_page() || is_home()){ + echo get_bloginfo('name'); + } else{ + echo wp_title(''), " » ", get_bloginfo('name'); + }?> + > diff --git a/style.css b/style.css index 047b7a4..7b24f3c 100644 --- a/style.css +++ b/style.css @@ -1,6 +1,6 @@ /* Theme Name: ZERRO -Version: 0.2 +Version: 0.3 Description: Personal theme Author: Pavel Kuleshov Author URI: https://3err0.ru