Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 04:34:05 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155533 Posts in 21713 Topics by 7739 Members
Latest Member: audillino
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Add text in front of <title><?php page_title(); ?></title>  (Read 1156 times)
i2Paq

Offline Offline

Posts: 511


« on: February 21, 2010, 09:47:03 PM »


In my template the following code is used:
Code:
<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.
Logged

Opensource is my life, but then elsewhere.
Swon

Offline Offline

Posts: 28



WWW
« Reply #1 on: February 22, 2010, 12:52:06 AM »

have you tried:
Code:
<title>added text - <?php page_title(); ?></title>
Logged
i2Paq

Offline Offline

Posts: 511


« Reply #2 on: February 22, 2010, 07:37:56 AM »

have you tried:
Code:
<title>added text - <?php page_title(); ?></title>

 embarassed

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

Thanks  smiley
Logged

Opensource is my life, but then elsewhere.
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!