I use T3 and a Joomlart template and would like to set a different title for the home page from the rest of the site. This is proving quite hard to do!

I tried setting this in the template's Before < /head> section:

<script type="text/javascript">
$menu = $app->getMenu();
    if ($menu->getActive() == $menu->getDefault()) {
    $this->setTitle( 'TITLE' );
    }
</script>

It seems like Joomla creates a default page title for the page that overrides this script.

I just want TITLE in the title, not TITLE - TITLE which I seem to be getting or Home - Title.

How do I fix this?

Cheers, David

Hi David,

It should take the settings in menu item of a page in priority, kindly check the Page Display tab in your settings of home menu item on your site: http://prntscr.com/ixcu29

Thanks Saguaros, my site name is XYZ. I want to append (add) my site name to all pages, except for the home page - ie. the home page should just be XYZ.

When I set the Browser Page Title for the homepage to XYZ, the title for that page becomes XYZ - XYZ.
This is why I'm trying to use the script as described above.

I've tried a bunch of things but still can't get this to work. Any ideas?

For example:
I'm setting Site Name in Page Titles to After in Global Configuration as I want to add this automatically on all the other pages.

Without adding the script above to the template and setting Show Page Heading in the menu item to No:
1. Leaving the Browser Page Title blank in the home menu item... I get: Home - XYZ
2. If I add my site name in home Browser Page Title... I get: XYZ - XYZ

    davisj
    Hi,

    I got your point but this belongs to core feature of Joomla, there is no settings to achieve that. I suggest you to use a 3rd party extension which supports seo / url rewrite, they often support to override the browser page title also.

    Regards

    Write a Reply...
    You need to Login to view replies.