WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Templates, Menus & Design => Topic started by: i2Paq on February 21, 2010, 09:47:03 PM

Title: Add text in front of <title><?php page_title(); ?></title>
Post by: i2Paq 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.
Title: Re: Add text in front of <title><?php page_title(); ?></title>
Post by: Swon on February 22, 2010, 12:52:06 AM
have you tried:
Code: [Select]
<title>added text - <?php page_title(); ?></title>
Title: Re: Add text in front of <title><?php page_title(); ?></title>
Post by: i2Paq 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  :-)