Forums

[resolved] Custom page titles? (6 posts)

  1. tdellaringa
    Member
    Posted 6 years ago #

    Well if the "kick butt" yahoo search worked, I could search on this, but it doesn't :/.

    I want a custom page title for each page, but the TITLE is only contained in the header.php file. Anyone know of a way short of javascript to do this?

  2. moshu
    Member
    Posted 6 years ago #

    I am not sure I understand correctly what you are asking for... but if this is about the <title></title> tag in the head which is displayed on the top of the browser - it displays (by default) the title of the post/Page/category you are on.

  3. mylagoon
    Member
    Posted 6 years ago #

    Sorry, can you further calrify, maybe with an example, exactly what you mean by 'custom page title'?

    If you mean show the name of the page in the title, this is possible with the following code:

    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

    But that should be coded into most themes anyway.

  4. moshu
    Member
    Posted 6 years ago #

    Re search: there is a "sticky" post on the main page (hint: red/pink bg colour)

  5. tdellaringa
    Member
    Posted 6 years ago #

    Mylagoon - that is exactly what I wanted. I made my own theme so I didn't have that in there. Thanks!

  6. Silkjaer
    Member
    Posted 6 years ago #

    You could use conditional tags in your <title></title> to specify what it should be eg. on a single post page etc..

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.