WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.9 R24 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Add text in front of <title><?php page_title(); ?></title>
  • Print
Pages: [1]   Go Down

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

i2Paq

  • Guest
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.
Logged

Swon

  • Guest
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>
Logged

i2Paq

  • Guest
Re: Add text in front of <title><?php page_title(); ?></title>
« Reply #2 on: February 22, 2010, 07:37:56 AM »
Quote from: Swon on February 22, 2010, 12:52:06 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  :-)
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Add text in front of <title><?php page_title(); ?></title>
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2