Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 05:14:06 PM

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.
155544 Posts in 21714 Topics by 7736 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Title page question  (Read 467 times)
ivanisevic82

Offline Offline

Posts: 93


« on: February 08, 2011, 05:08:14 PM »

Hi Boys, I have a simple question for you.
In my template I used the code <?php page_title(); ?> to can simply write the title of every page in the fild for "title" on the setting of page.

But I have seen that for every pages appear not only the text I write in the fied, but befer is writed the name of the site.

For example, if the name of my site is: "RED" and in the fild title of a page I wrote "HOME PAGE" in the title of the source final page there will be:
"RED - HOME PAGE"
but I only want to see what I write in the title field, so "HOME PAGE" and not "RED - HOME PAGE".

Can you help me?

Sorry for my english!!

Bye!
Logged
Argos
Moderator
**
Online Online

Posts: 2161


WWW
« Reply #1 on: February 08, 2011, 06:33:32 PM »

Try <?php echo PAGE_TITLE; ?> instead of <?php page_title(); ?>
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
ivanisevic82

Offline Offline

Posts: 93


« Reply #2 on: February 08, 2011, 06:43:56 PM »

It works!

Thank you!
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #3 on: February 08, 2011, 08:23:49 PM »

Because I don't see any reason to leave it open.

Question asked
Answer given
Confirmed by User

Done.

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Argos
Moderator
**
Online Online

Posts: 2161


WWW
« Reply #4 on: February 08, 2011, 09:47:47 PM »

Often users ask related questions in the same topic. I don't see any advantage in closing topics that have questions that are answered...
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
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!