Welcome to Geeklog, Anonymous Sunday, November 24 2024 @ 05:10 am EST
Geeklog Forums
Wordpress optimal title - SEO
Status: offline
1000ideen
Forum User
Full Member
Registered: 08/04/03
Posts: 1298
It is some time ago that I discovered that the titles in the browser are not very fortunate. The display says site_name followed by the title of the story. For SEO you need it the other way round and I changed the lib-common.php around line 905 from
}
$header->set_var( 'page_title', $_CONF['site_name'] . $pagetitle );
to
}
$header->set_var( 'page_title', $pagetitle . $_CONF['site_name'] );
Wordpress offers a plugin for that called optimal title http://elasticdog.com/2004/09/optimal-title/ and I thought that this might become a variable in the GL config.php
Text Formatted Code
$pagetitle = ' - ' . $pagetitle;}
$header->set_var( 'page_title', $_CONF['site_name'] . $pagetitle );
to
Text Formatted Code
$pagetitle = ' ' . $pagetitle;}
$header->set_var( 'page_title', $pagetitle . $_CONF['site_name'] );
Wordpress offers a plugin for that called optimal title http://elasticdog.com/2004/09/optimal-title/ and I thought that this might become a variable in the GL config.php
36
20
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
Shouldn't the hyphen split the new page and the site name?
}
$header->set_var( 'page_title', $pagetitle . $_CONF['site_name']);
Text Formatted Code
$pagetitle .= ' - ' ;}
$header->set_var( 'page_title', $pagetitle . $_CONF['site_name']);
16
19
Quote
Status: offline
1000ideen
Forum User
Full Member
Registered: 08/04/03
Posts: 1298
Yes, but whatever I did it stayed at the begining of the title and did not split page and site name. I even added 2 spces at the beginning:
$_CONF['site_name'] = '  Geeklog-site';
Anyway, thanks for responding. I`ll come up with some more ideas soon.
$_CONF['site_name'] = '  Geeklog-site';
Anyway, thanks for responding. I`ll come up with some more ideas soon.
18
14
Quote
Status: offline
ronsteenvoorden
Forum User
Newbie
Registered: 05/08/06
Posts: 12
Hi, I edited libcommon.php but dont see any changes in the pagetitle.
Here is the code i entered on line 905:
$pagetitle = ' ' . $pagetitle;
}
$header->set_var( '$page_title', $pagetitle . $_CONF['site_name'] );
furthermore i didn't understand the $ sorry i am no php-programmer.
Strange enough the pagetitle is always correct when i choose the print-page layout.
does anyone have a clue? Many thanks.
ps the site in question is: http://blog.islayinfo.com
blog.islayinfo.com
Here is the code i entered on line 905:
$pagetitle = ' ' . $pagetitle;
}
$header->set_var( '$page_title', $pagetitle . $_CONF['site_name'] );
furthermore i didn't understand the $ sorry i am no php-programmer.
Strange enough the pagetitle is always correct when i choose the print-page layout.
does anyone have a clue? Many thanks.
ps the site in question is: http://blog.islayinfo.com
blog.islayinfo.com
16
14
Quote
Status: offline
1000ideen
Forum User
Full Member
Registered: 08/04/03
Posts: 1298
With version 1.4.1rc1 it is the following code change:
Original lines 967-969:
}
$header->set_var( 'page_title', $_CONF['site_name'] . $pagetitle );
Hacked lib-common.php:
}
$header->set_var( 'page_title', $pagetitle . $_CONF['site_name']);
I think this should definitely become a variable in config.php to be switched either way.
Original lines 967-969:
Text Formatted Code
$pagetitle = ' - ' . $pagetitle;}
$header->set_var( 'page_title', $_CONF['site_name'] . $pagetitle );
Hacked lib-common.php:
Text Formatted Code
$pagetitle = $pagetitle . ' - ';}
$header->set_var( 'page_title', $pagetitle . $_CONF['site_name']);
I think this should definitely become a variable in config.php to be switched either way.
16
17
Quote
All times are EST. The time is now 05:10 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content