|
|
|
|
|
|
|
![]() |
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
![]() |
#1 |
old enough to be Grandma Scrotum
|
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
__________________
![]() |
![]() |
![]() |
![]() |
#2 |
Took the hint.
|
It is in the header.php of your template you will find this code:
Code:
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title> 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 |
![]() |
![]() |
![]() |
#3 |
old enough to be Grandma Scrotum
|
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>
__________________
![]() |
![]() |
![]() |
![]() |
#4 |
Took the hint.
|
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 |
![]() |
![]() |
![]() |
#5 |
old enough to be Grandma Scrotum
|
Thanks Alex, I'll give it a go
![]()
__________________
![]() |
![]() |
![]() |
![]() |
#6 |
old enough to be Grandma Scrotum
|
YAY! I got it to work!!!
And it only took six goes! Thanks for your help Alex
__________________
![]() |
![]() |
![]() |
![]() |
#7 |
Took the hint.
|
![]() |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|