Improve the organization of WordPress page title to make your articles easier to be included by spiders

Time:2020-2-13

I found a lot of articles on the Internet to change the function

Why do I need to change the function for what the template does

So we study the function of WP title

I found that online articles are all the mean ways for people who didn’t read WP PHP function carefully to reach the standard

In fact, if you change the template slightly, you can achieve the effect

The first thing I want to change is the template. For example, the address of the template modified by the blog on the road is

wp-content/themes/poetry/templates/start.php

Open this file with a text editor

About 44 lines (you can directly search < title > to locate the location)

Change this line to

<title><?php wp_title(‘&raquo;’,true,’right’); ?> <?php bloginfo(‘name’); ?></title>

That’s it