开发者

Wordpress set title?

I have a wordpress website which I've added a couple of custom pages to. Everything works fine except that those custom pages don't have titles. Is there a (short开发者_运维知识库?) way to add titles to those custom pages?

Edit: I think I was unclear, I meant the title at the top of the browser (html title) not the title of a wordpress page.


You can go to the 'Pages' page where it lists the pages and use quick edit:

Wordpress set title?

Hover over a page and click 'Quick Edit'

Wordpress set title?

Make your changes, and then click 'Update'.

EDIT

I seem to have misunderstood the question. Yes, WordPress gives you a filter to play with the title. See below:

function my_title_tag_filterer( $title, $separator, $separator_location ){
  //You can do things to the title here.
  return $title;
}

add_filter( 'wp_filter', 'my_title_tag_filterer' );

$title is the title, $separator is the text that goes between the blog title and the page title, and $separator_location is where the separator goes in relation to the page title.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜