最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

php - Site title not showing. Please help me

matteradmin8PV0评论

Please help me, My WordPress site's title not showing. It's just displaying the domain like, www.example. site: Please check my site code and suggest how to display the normal title tag.

Please help me, My WordPress site's title not showing. It's just displaying the domain like, www.example. site: https://happyygarden Please check my site code and suggest how to display the normal title tag.

Share Improve this question asked Mar 26, 2019 at 6:13 Happyy GardenHappyy Garden 31 bronze badge 1
  • Please close your <title> tag in header file. – Pratik Patel Commented Mar 26, 2019 at 6:25
Add a comment  | 

1 Answer 1

Reset to default 0

Use this code in Header.php file.

<title><?php wp_title(' - ', true, 'right'); ?></title>

But as per page view source code.you have forgot to close tag above tag in header. so please close tag. see this screenshot

Should code like this:

<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
</script>
<title><?php wp_title(' - ', true, 'right'); ?></title>

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far