?
avatar N6REJ
N6REJ
19 Jun 2015

.

avatar N6REJ N6REJ - open - 19 Jun 2015
avatar Bakual
Bakual - comment - 19 Jun 2015

Why are you adding a favicon in your template?
Joomla automatically detects the favicon from /templates/yourtemplate/favicon.icon or /favicon.icon.

avatar N6REJ
N6REJ - comment - 19 Jun 2015

@Bakual its done by many templates as a way of allowing the user to load their template from the admin

avatar N6REJ
N6REJ - comment - 19 Jun 2015

else why would J! even have that function?

avatar zero-24 zero-24 - change - 19 Jun 2015
Category Templates (site)
avatar zero-24 zero-24 - change - 19 Jun 2015
The description was changed
avatar zero-24 zero-24 - change - 19 Jun 2015
Labels Added: ?
avatar PhilETaylor
PhilETaylor - comment - 19 Jun 2015

Before commenting everyone should read this helpful article which explains a lot about the intricacies of this subject as there is a lot more to it than a lot of people understand!: http://www.jonathantneal.com/blog/understand-the-favicon/

Having multiple favicon's is perfectly acceptable. However can you provide an example in code where you are trying to replace the default favicon with your own and that Joomla then just adds yours as well as the default? Is that what you are saying the "issue" is?

avatar N6REJ
N6REJ - comment - 22 Jun 2015

put your favicon in the template root folder, then in the index.php call the load favicon statement.
you would run into this if your template provides for you to supply your favicon in the admin as a param, and they have their ( or any ) favicon in the template root.

What will happen is the param favicon will load first ( via $this->addFavicon(JURI::root() . $favicon); ) and then the favicon in the template root will be loaded second. You can clearly see this with the element inspector.

avatar wilsonge
wilsonge - comment - 26 Jun 2015

As Phil says loading multiple favicons is actually required for use cases and the addFavicon is used for that purpose. The same URL favicon can't be loaded twice - so you are loading different URL's for your favicon. There's nothing that can be done in that use case other than ensuring that favicon.ico is deleted properly.

avatar wilsonge wilsonge - change - 26 Jun 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-06-26 08:34:45
Closed_By wilsonge
avatar wilsonge wilsonge - close - 26 Jun 2015

Add a Comment

Login with GitHub to post a comment