It is good SEO practice to put the page title first in your title tags, and then your site name. Unfortunately, by default, Joomla places the site name first before the page title.
To change this, grab a copy of the file /includes/joomla.php
Around line number 507, replace this:
$this->_head['title'] = $title ? $GLOBALS['mosConfig_sitename'] . ' - '. $title : $GLOBALS['mosConfig_sitename'];
With this:
$this->_head['title'] = $title ? $title .' - '. $GLOBALS['mosConfig_sitename'] : $GLOBALS['mosConfig_sitename'];
Thanks, what a co-incidence: this was exactly what I needed to fix. Saved me lots of time!
– julz
It saved me time. Thanx Chette
Thanks, what a co-incidence: this was exactly what I needed to fix. Saved me lots of time!
I´ve been searching how to do this for weeks without any results.
Thank you! :)
Chette, thanks, thanks and thanks four your help… This topic (Changing ordering of page title and site name in Joomla) is just that I needed… You are a fantastic woman… Thanks…
Hola! Era justo lo que andaba buscando. Funciona estupendamente gracias. ;)
Excellent, helped me a lot, thanks for your help and keep on working for the community!
Thanks that helps a lot for SEO
Thank you very much !
thanks for your help
Can’t believe I found this!!! Thank you ;D
oh thanx u!
i really neede this..
:)
regards, fifi ;)
Wow, really great tip, I’m searching some solution for this for my joomla real estate and found this. Thanks for share.
Hi Chette, I just wanted to let you know that I did write the article and gave you kudos and link: http://www.joomlaviews.com/joomla-tutorials/how-to/changing-order-of-site-title-and-page-title-2008032983.html
Thanks for the tip – it is real sad that one needs to hack the source code to get such a basic thing to work.
I am writing an SEO article for Joomla and I will include this tip as well as a link back for the tip.
Thanks, fast and easy!
Thank you for sharing this information. I will use it for my blog and change the order of title.
Thank you for sharing this information. I will use it for my blog and change the order of title. wow gold
Hi Chette, I just wanted to let you know that I did write the article and gave you kudos and linkhttp://www.wow-powerleveling-wow.com/
Its great. But in joomla stable version, the path to be changed is in ‘\libraries\joomla\document\document.php’ in that we have a function called ‘setTitle($title)’. The title is actually rendered from there. So you can change title according to your wish
A good article, really helpful
Very good ;D
thanks for sharing this joomla seo tips,Most cms’ title of joomla is not seo friendly ,like worddpress,hope you can write some thing for wordpress
Its great. But in joomla stable version, the path to be changed is in ‘librariesjoomladocumentdocument.php’ in that we have a function called ‘setTitle($title)’. The title is actually rendered from there. So you can change title according to your wish [url=http://www.wow-powerleveling-wow.com/]wow gold[/url]
hi all! great post but im having some issues, Im using stable version 1.0.13 and using sh404 for seo. The problem is when I edit the code as above I get an error like ”
SH404SEF : headers were already sent when I got control!
Killed at line 149 in sef404.php: HEADERS ALREADY SENT (200)
URL=http://www.tsibatsiba.co.zaoption=com_frontpage&Itemid=42
OPTION=com_frontpage ”
any help would be greatly appreciated!
thanks
josh
how can i do it in joomla 1.5.10.
the path u’ve mentioned is available in joomla 1.0..
here the path is /libraries/joomla/document/document.php
but what i need to replace instead of line 545.
function setTitle($title) {
$this->title = $title;
pls help.
To answer Su,
function setTitle($title) {
$this->title = $title.’putsitenamehere’;
}
[url=http://www.uggboots100.co.uk/classic-tall-romantic-flower-ugg-boots.html]Classic Tall Romantic Flower Ugg Boots[/url]
Allowing customers to post negative reviews gives credibility to the whole process
wow gold
wow gold
wow gold
wow gold
aion kina
aion kinah
aion gold
http://www.watchgy.com/rolex-air-king-c-1.html
http://www.watchgy.com/rolex-datejust-c-9.html
http://www.watchgy.com/rolex-day-date-c-7.html
http://www.watchgy.com/rolex-daytona-c-6.html
http://www.watchgy.com/rolex-gmt-c-11.html
http://www.watchgy.com/rolex-submariner-c-8.html
http://www.watchgy.com/rolex-yachtmaster-c-13.html
http://www.watchgy.com/a-lange-sohne-c-14.html
http://www.watchgy.com/alain-silberstein-c-23.html
http://www.watchgy.com/bell-ross-c-15.html
http://www.watchgy.com/breguet-c-16.html
http://www.watchgy.com/breitling-c-17.html
http://www.watchgy.com/bvlgari-c-25.html
http://www.watchgy.com/cartier-c-18.html
http://www.watchgy.com/omega-c-20.html
http://www.watchgy.com/patek-philippe-c-22.html
http://www.watchgy.com/
Celtics give Rondo $55 million extension.The Boston Celtics and Rajon Rondo(notes) have reached an agreement in principle on a contract extension, Rondo’s agent, Bill Duffy, said [url=http://www.euwowgold.com]wow gold[/url] early Monday.League sources said the extension is for five years and guarantees Rondo at least $55 million.
Very good,thank you very much.
good news
just do it
Yeah,It looks pretty cool.
Good sharing!
YOU ROCK!!!!!!!!!!!!!!!!!!!!!!!
there is a missing step for this to work as well as the fletiring, if you are using the JCE editor (and who isn’t!) you also have to Check that the Editor Profile Parameters allow IFrames.In the JCE Control Panel, click on the Editor Profiles button.Click on the Profile name that the user, usergroup or component is assigned to, eg: Default’Click on the Plugin Parameters tab, then on the Media Support tab.Check that the Allow IFrames is set to Yes.