Advertisement
Browser title - how do add website's name
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
- thepisu
- Joomla! Apprentice
- Posts: 23
- Joined: Tue Jul 24, 2007 12:00 pm
- Location: Italy
- Contact:
Browser title - how do add website's name
Hi, searched the forum for this, but without luck...
I just installed Joomla 1.5 RC1 online (http://www.thepisu.tk), all feels ok, but I can't find how to add the website's title on the browser title bar....
In example: if the page is named "Blog", and my site name is "thePisu website", I want that the browser title become "thePisu website - Blog". That was default in Joomla 1.0.x.... There is this feature in 1.5?
Thanks,
Pisu
I just installed Joomla 1.5 RC1 online (http://www.thepisu.tk), all feels ok, but I can't find how to add the website's title on the browser title bar....
In example: if the page is named "Blog", and my site name is "thePisu website", I want that the browser title become "thePisu website - Blog". That was default in Joomla 1.0.x.... There is this feature in 1.5?
Thanks,
Pisu
Pisu - VirtueMart Development Team Member
Team VMItalia (Supporto Italiano VirtueMart)
http://www.vmitalia.net
Advertisement
-
- Joomla! Fledgling
- Posts: 2
- Joined: Fri Aug 17, 2007 8:32 pm
Re: Browser title - how do add website's name
I noticed the same problem. Here's what I found.
In the file components\com_content\views\view.html.php around line 84, change the line:
$document->setTitle($article->title);
to
$document->setTitle($mainframe->getCfg('sitename'). ' - ' .$article->title);
That worked for me.
In the file components\com_content\views\view.html.php around line 84, change the line:
$document->setTitle($article->title);
to
$document->setTitle($mainframe->getCfg('sitename'). ' - ' .$article->title);
That worked for me.
- thepisu
- Joomla! Apprentice
- Posts: 23
- Joined: Tue Jul 24, 2007 12:00 pm
- Location: Italy
- Contact:
Re: Browser title - how do add website's name
You forgot the subdir "article", but it works!! Thanks!
Now, I think that this should be a default behavior of Joomla, not only for article title, but also for menu items...
Now, I think that this should be a default behavior of Joomla, not only for article title, but also for menu items...
Pisu - VirtueMart Development Team Member
Team VMItalia (Supporto Italiano VirtueMart)
http://www.vmitalia.net
-
- Joomla! Apprentice
- Posts: 11
- Joined: Wed Aug 29, 2007 6:09 pm
Re: Browser title - how do add website's name
I had the same problem. Used your suggestion and it worked - Brilliant.
Unfortunately my home page still put the annoying message "Welcome to the Front Page" in the title bar.
Any ideas? Am I maybe looking at a template issue? Where can you set the page title in 1.5?
Thanks for your help. John
Unfortunately my home page still put the annoying message "Welcome to the Front Page" in the title bar.
Any ideas? Am I maybe looking at a template issue? Where can you set the page title in 1.5?
Thanks for your help. John
Last edited by johninspain on Sun Nov 25, 2007 4:41 pm, edited 1 time in total.
- thepisu
- Joomla! Apprentice
- Posts: 23
- Joined: Tue Jul 24, 2007 12:00 pm
- Location: Italy
- Contact:
Re: Browser title - how do add website's name
Reporting from this post:johninspain wrote: Unfortunately my home page still put the annoying message "Welcome to the Front Page" in the title bar.
http://forum.joomla.org/index.php/topic ... #msg940718
And it worksTo change "Welcome to the Frontpage", go to Menus > Main Menu. Click 'Home', expand 'Parameters - System' and edit 'Page Title'.
Pisu - VirtueMart Development Team Member
Team VMItalia (Supporto Italiano VirtueMart)
http://www.vmitalia.net
-
- Joomla! Apprentice
- Posts: 7
- Joined: Fri Apr 13, 2007 9:51 am
Re: Browser title - how do add website's name
If you don't want to brake your Joomla installation you could put this into index.php of your template, it has to before <head></head> section:
Code: Select all
$this->setTitle($mainframe->getCfg('sitename'). ' - ' .$this->title);
-
- Joomla! Apprentice
- Posts: 11
- Joined: Tue Jul 08, 2008 11:38 am
Re: Browser title - how do add website's name
Teniemi you're the man, it just worked!
- jacoot
- Joomla! Explorer
- Posts: 311
- Joined: Thu Feb 05, 2009 10:27 am
Re: Browser title - how do add website's name
really it deserve change
-
- Joomla! Fledgling
- Posts: 3
- Joined: Sun Dec 07, 2008 7:53 am
Re: Browser title - how do add website's name
I tried Teniemi's solution:
Cheers
Irene
And this worked except I have an"&" in my website title and it is showing in the browers as & - how can I show it as: &teniemi wrote:If you don't want to brake your Joomla installation you could put this into index.php of your template, it has to before <head></head> section:Code: Select all
$this->setTitle($mainframe->getCfg('sitename'). ' - ' .$this->title);
Cheers
Irene
- Ghonjez
- Joomla! Exemplar
- Posts: 8770
- Joined: Sat Oct 18, 2008 3:02 am
- Location: Mars
- Contact:
Re: Browser title - how do add website's name
Hi...
For easiest way, use TitleManager extensions :
http://extensions.joomla.org/extensions/3521/details
I've tried it and fine work.
Good luck.
For easiest way, use TitleManager extensions :
http://extensions.joomla.org/extensions/3521/details
I've tried it and fine work.
Good luck.
- basic612
- Joomla! Enthusiast
- Posts: 176
- Joined: Fri Sep 02, 2005 3:41 am
Re: Browser title - how do add website's name
Untested but should work:FotoHijinx wrote: And this worked except I have an"&" in my website title and it is showing in the browers as & - how can I show it as: &
Code: Select all
$this->setTitle(html_entity_decode($mainframe->getCfg('sitename'). ' - ' .$this->title));
"A lie can travel halfway around the world while the truth is putting on its shoes”, said Mark Twain. Modern communications help the lie travel even further, although Velcro having replaced lace-ups, the truth is not all that slow anymore in getting ready – mainly thanks to the internet.
Dr S Bleher
Dr S Bleher
-
- Joomla! Fledgling
- Posts: 2
- Joined: Fri May 02, 2008 1:11 pm
Re: Browser title - how do add website's name
Thank you very much basic612!basic612 wrote:Untested but should work:
Code: Select all
$this->setTitle(html_entity_decode($mainframe->getCfg('sitename'). ' - ' .$this->title));
- kaz101
- Joomla! Apprentice
- Posts: 44
- Joined: Fri Mar 28, 2008 6:20 am
- Location: South Australia
- Contact:
Re: Browser title - how do add website's name
Thanks for that tip. That extension is exactly what I was looking for!Ghonjez wrote:Hi...
For easiest way, use TitleManager extensions :
http://extensions.joomla.org/extensions/3521/details
I've tried it and fine work.
Good luck.
"There is never a lack of money - only a lack of ideas" ~ Robert H Schuller.
Advertisement