test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • jjsmulo Friend
    #137024

    I’m trying to figure out how to get the top left of website browser windows to display the name of my website across all pages. Mostly I add the information into my home page menu parameters, but on Uvite that puts the information as sub-names under the main menu items.

    How can I get my website name to show up consistently regardless of what page is being browsed?

    scotty Friend
    #286159

    Open your_joomla_directory/libraries/joomla/document/html/renderer/head.php and find on line 85…

    [php]$strHtml .= $tab.'<title>’.htmlspecialchars($document->getTitle()).'</title>’.$lnEnd;[/php]and change to…

    [php]$strHtml .= $tab.'<title>www.yourdomain.com – ‘.htmlspecialchars($document->getTitle()).'</title>’.$lnEnd;[/php]This will place http://www.yourdomain.com before all the normal page titles

    WARNING: Do not replace the ‘.htmlspecialchars($document->getTitle()).’ or all your pages will just have your domain name as the title. This would be extremely bad for SEO.

    jjsmulo Friend
    #286178

    This was very helpful, thank you.

    Though more specifically, I wanted every page to say for example: My Website Name. With the above it has http://www.mywebsitename.com and then the name of the page I’m on (e.g. “Home” or about).

    scotty Friend
    #286183

    You can replace the http://www.mydoamin.com with whatever you wish. Just make sure to leave the dynamic part, the bit I mention above, intact.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  scotty 15 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum