Greenguy's Board


Go Back   Greenguy's Board > Blogs and Blogging
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2006-03-07, 06:11 PM   #1
Ms Naughty
old enough to be Grandma Scrotum
 
Ms Naughty's Avatar
 
Join Date: Aug 2003
Location: Australia
Posts: 1,408
Send a message via ICQ to Ms Naughty
Wordpress: How to change post page titles?

Hi all
Haven't had much luck in finding info on this so I'm hoping someone here has a quick answer.

I can't find the setting on Wordpress to change what it puts in the <title> tags for each post page. This means that all my individual post pages have a title that says:
Ms Naughty Porn for Women Blog : Blog Archive : <Post name>

I want the post name to appear first.

Any suggestions on how to do this?

Thanks

Karen
__________________
Promote Bright Desire
Ms Naughty is offline   Reply With Quote
Old 2006-03-07, 06:24 PM   #2
RawAlex
Took the hint.
 
Join Date: Mar 2003
Posts: 5,597
Send a message via AIM to RawAlex
It is in the header.php of your template you will find this code:

Code:
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
The first part bloginfo('name') shows the title of your site as defined. The second part (is_single) checks to see if this is a single post, if it is, it puts up the words Blog Archive followed by the title of the post.

That is where it comes from... you can re-arrange or remove the parts as needed, but remember, the same code is run on the main pages and other pages as well, so you have to be a little inventive, and check out what you doing and how it affects other pages.

Alex
RawAlex is offline   Reply With Quote
Old 2006-03-07, 07:31 PM   #3
Ms Naughty
old enough to be Grandma Scrotum
 
Ms Naughty's Avatar
 
Join Date: Aug 2003
Location: Australia
Posts: 1,408
Send a message via ICQ to Ms Naughty
Eek!
Thanks for helping Alex! Unfortunately my php skills are exceedingly close to zero, so I'm very hesitant to do any editing.

Have you got a suggestion for rearranging that code so it goes:
Post Title : Blog Title

Would it work if I did this?
<title><?php wp_title(); ?><?php bloginfo('name'); ?></title>
__________________
Promote Bright Desire
Ms Naughty is offline   Reply With Quote
Old 2006-03-07, 11:18 PM   #4
RawAlex
Took the hint.
 
Join Date: Mar 2003
Posts: 5,597
Send a message via AIM to RawAlex
You might want to try:

<title><?php wp_title(); ?><?php if ( is_single() ) { ?> : <?php } ?><?php bloginfo('name'); ?></title>

That should work, and won't give you a blank : at the start of regular pages. As always, keep a backup of the previous version before you start.

Alex
RawAlex is offline   Reply With Quote
Old 2006-03-08, 12:14 AM   #5
Ms Naughty
old enough to be Grandma Scrotum
 
Ms Naughty's Avatar
 
Join Date: Aug 2003
Location: Australia
Posts: 1,408
Send a message via ICQ to Ms Naughty
Thanks Alex, I'll give it a go
__________________
Promote Bright Desire
Ms Naughty is offline   Reply With Quote
Old 2006-03-08, 03:33 AM   #6
Ms Naughty
old enough to be Grandma Scrotum
 
Ms Naughty's Avatar
 
Join Date: Aug 2003
Location: Australia
Posts: 1,408
Send a message via ICQ to Ms Naughty
YAY! I got it to work!!!
And it only took six goes!
Thanks for your help Alex
__________________
Promote Bright Desire
Ms Naughty is offline   Reply With Quote
Old 2006-03-08, 08:30 AM   #7
RawAlex
Took the hint.
 
Join Date: Mar 2003
Posts: 5,597
Send a message via AIM to RawAlex
RawAlex is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:28 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc