Author Topic: Change home page title  (Read 24110 times)

elwalker

  • Newbie
  • *
  • Posts: 16
    • View Profile
Change home page title
« on: 19 August 2007, 17:17 »
Hello. Can anyone tell me how to change the home page title?

I've installed version 5.3 and can change titles on other pages through the alias function. Yet I can't do this on the home page. I assume the homepage URL is index.php and that it's not forwarded to another destination.

Thanks.

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,097
    • View Profile
    • Sakic.Net
Re: Change home page title
« Reply #1 on: 21 August 2007, 00:45 »
You should be able to add empty alias for the frontpage.

elwalker

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Change home page title
« Reply #2 on: 21 August 2007, 13:35 »
Thanks Emir. But I'm still stuck. I want to create a title alias for the home page.

It currently says: Adventure Cornwall - Home

I want it to say: Activities, adventures, & extreme sports - Adventure Cornwall

Can I change the title tag for the home page with Advance SEF?

Thanks.

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,097
    • View Profile
    • Sakic.Net
Re: Change home page title
« Reply #3 on: 23 August 2007, 00:15 »
You should be able to do it if you enter empty non-sef URL.

elwalker

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Change home page title
« Reply #4 on: 23 August 2007, 10:49 »
No that didn't work. I get a pop up messaging telling me that I MUST enter a non-SEF URL. I'm sure there's a way to do this. Please can you help some more?

Saka

  • Administrator
  • Hero Member
  • *****
  • Posts: 2,097
    • View Profile
    • Sakic.Net
Re: Change home page title
« Reply #5 on: 24 August 2007, 12:08 »
You are right. Then it's not possible with SEF Advance. You could only do it with some hacking in core files.

elwalker

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Change home page title
« Reply #6 on: 29 November 2007, 21:48 »
Hi again. I still can't edit my home page title to make it more search engine friendly. I'm successfully using alias on other pages, but this home page title has got me stumped. I've tries a suggested change to includes/joomla.php but I couldn't get it to work. Do you have any new ideas?

martialedge

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Change home page title
« Reply #7 on: 06 December 2007, 20:41 »
I'm also having the same problem.. its most annoying as obviously having the home page optimised is one of the key reasons we purchased this software....

Please could someone let us know how to do this (or explain how to hard code it if its not possible)...


Thanks

Martial Edge Team
www.martialedge.net

elwalker

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Change home page title
« Reply #8 on: 07 December 2007, 10:46 »
Hi there. I had to get someone with more knowhow than me to do this for me. I don't wholly understand how he achieved it but my home page is now how I want it. It is indeed something to do with includes/joomla.php

joomla

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Change home page title
« Reply #9 on: 07 December 2007, 20:24 »
Search for this line in file includes/joomla.php:

$this->_head['title'] = $title ? $GLOBALS['mosConfig_sitename'] . ' - '. $title : $GLOBALS['mosConfig_sitename'];

and replace with

if ( $title == 'Home' ) { $title = null; }
$this->_head['title'] = $title ? $GLOBALS['mosConfig_sitename'] . ' - '. $title : $GLOBALS['mosConfig_sitename'];

or (for opposite titles)

if ( $title == 'Home' ) { $title = null; }
$this->_head['title'] = $title ? $title . ' - ' . $GLOBALS['mosConfig_sitename'] : $GLOBALS['mosConfig_sitename'];

« Last Edit: 07 December 2007, 20:35 by joomla »

martialedge

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Change home page title
« Reply #10 on: 08 December 2007, 10:50 »
Hi,
I already change the code in joomla.php as you suggest but its not work. Do you have any suggestion?

Thanks in advance

joomla

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Change home page title
« Reply #11 on: 08 December 2007, 14:52 »
Now is not very clear what your need is?!

Check my site titles!
http://www.mrkonjicgrad.com/