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.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


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 5349 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.
Logged
Opensource is my life, but then elsewhere.

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

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 »
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
Opensource is my life, but then elsewhere.

  • 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