Support » Themes and Templates » My title won’t do as I ask

  • Resolved jadr



    I’ve tried to change my titel on my web and my posts/pages. But it keeps messing up, or in other words, I can’t make it work. So now, I’ve reset it to default again. But I’d like it to work in my way, please help.

    My site is:

    I want the frontpage to hold the title of my website. On all other pages/posts I want this:
    Titel of post/page >> Title of website
    For example:
    Vibration jacket for chickens >> Curiosa >>
    Search specific filetypes on Google >> Google Tools >>

    What would the needed code be ?

    thx for any help
    Jakob Boyer-Dræ (

Viewing 12 replies - 1 through 12 (of 12 total)
  • Mark (podz)


    Support Maven

    I might be misunderstanding, but are you after what is called breadcrumbs ?

    no, faily simple, I want to make the title of the post be first i my IE/Browser title, and after that the name of my website

    if i getcha.. then i think you are after the code for this to get the title to show up.. if so then i think you just need to place in the single template single.php or page.php this:
    <?php the_title(); ?> <?php bloginfo('name'); ?>

    usually it sits between some heading tags or something.

    where the code will return:
    title blogname


    <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <?php the_title(); ?> <?php bloginfo(‘name’); ?>

    But does this screw up the archive pages ?


    Doesnt work, the result is that every page is titled my domain “”.

    Need it to be “Post title –”.
    and the main page should still be “”

    Restting back to default now.


    Perhaps Optimal Title is an idea? I am using it on our church site,

    With the code you posted:

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

    it should work (at least on my blog it does).

    This is – of course – in the html header section, so it usually should appear in your header.php.

    Sorry, i thought you wanted the title on the page, i misunderstood you meant the title at the top of the web browser.. in the header i have a line between

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » ARCHIVE <?php } ?> <?php wp_title(); ?></title>

    i think (haven’t tried it myeself) you should be able to change the code bit to:

    <title><?php if ( is_single() ) { ?><?php } ?> <?php wp_title(); ?> » <?php bloginfo('name'); ?></title>

    regardless, that is the bit of code you need to work with and you will probably need to tweak it to get it exactly as you want .. good luck!

    Works partly 🙂 I can make the homepage be “”, and subpages be “Title >>”… but…

    I get “>>” in front of the title and the domain, why ?
    I’ve change a bit, it now goes:

    <title><?php if ( is_single() ) { ?><?php } ?> <?php wp_title(); ?> – <?php bloginfo(‘name’); ?></title>

    I dont want anything in front of the domain when I’m in the root. SO, being in root it should just list domain: “” no extra characters.

    When on subpages, it should be “Title of post –”.



    Still no luck in changing the titel in my browser.

    I want the main title (root) to be my Domainname plus a defined extra line of information.

    My posts and pages should be “Post-subject > Domainname”

    Anyone ?

    Rgds and happy new years 06

    I think optimal title plugin does a simple version

    Hi Splosh
    Did the job, thx, nice and simple, a ‘KISS’ in your direction, thx mate.


Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘My title won’t do as I ask’ is closed to new replies.