Author Topic: Add text in front of <title><?php page_title(); ?></title>  (Read 2652 times)

Offline i2Paq

  • Posts: 524
  • Gender: Male
  • Tempelier, on bare feet!
Add text in front of <title><?php page_title(); ?></title>
« on: February 21, 2010, 09:47:03 PM »

In my template the following code is used:
Code: [Select]
<title><?php page_title(); ?></title>

I want to add a text in front of the <?php page_title(); ?> so it will show up as: <title>Added-text<?php page_title(); ?></title>
In the browser it will show as: Added-text - Contact.

I have no clue how to do that, as my knowlegde is small the things I tried failed.
Opensource is my life, but then elsewhere.

Offline Swon

  • Posts: 28
  • Gender: Male
    • Firma1 - hjemmesider
Re: Add text in front of <title><?php page_title(); ?></title>
« Reply #1 on: February 22, 2010, 12:52:06 AM »
have you tried:
Code: [Select]
<title>added text - <?php page_title(); ?></title>

Offline i2Paq

  • Posts: 524
  • Gender: Male
  • Tempelier, on bare feet!
Re: Add text in front of <title><?php page_title(); ?></title>
« Reply #2 on: February 22, 2010, 07:37:56 AM »
have you tried:
Code: [Select]
<title>added text - <?php page_title(); ?></title>

 :oops:

No, it give a strange color in my editor so I think it would not work.
But it worked.

Thanks  :-)
Opensource is my life, but then elsewhere.