Favicon meta tag

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
no-reply
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Sep 01, 2014 11:06 am

Favicon meta tag

Post by no-reply » Mon Sep 01, 2014 1:15 pm

When template folder contain favicon.ico Joomla generate meta tag:
<link href="favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />

I need remove this line in my template but i dont want delete favicon file.
How can i do this?

itoctopus
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4025
Joined: Mon Nov 25, 2013 4:35 pm
Location: Montreal, Canada
Contact:

Re: Favicon meta tag

Post by itoctopus » Mon Sep 01, 2014 2:29 pm

Just open your index.php file (under templates/[template-name]) and remove the above line. It should be there somewhere.
http://www.itoctopus.com - Joomla consulting at its finest
https://twitter.com/itoctopus - Follow us on Twitter

no-reply
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Sep 01, 2014 11:06 am

Re: Favicon meta tag

Post by no-reply » Mon Sep 01, 2014 5:33 pm

itoctopus wrote:Just open your index.php file (under templates/[template-name]) and remove the above line. It should be there somewhere.
No this line is generate automaticaly.
It is probably added by the <jdoc:include type="head" />.

Rajoz
Joomla! Apprentice
Joomla! Apprentice
Posts: 39
Joined: Wed Feb 02, 2011 7:52 pm
Location: Annecy, France

Re: Favicon meta tag

Post by Rajoz » Mon Sep 01, 2014 5:49 pm

Hi no-reply,

The link to favicon is automatically generated by Joomla in file libraries/joomla/document/html/html.php on lines 581-594.

To remove it you can comment the line 591 (adding //):

Code: Select all

// $this->addFavicon(JUri::base(true) . '/' . $path . 'favicon.ico');
Important: this file is a core file so it can be modified during Joomla update.

You can also check if an extension managing the favicon could help: http://extensions.joomla.org/search?q=favicon

Best regards,
Rajoz

no-reply
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Sep 01, 2014 11:06 am

Re: Favicon meta tag

Post by no-reply » Tue Sep 02, 2014 10:18 pm

Rajoz wrote:Hi no-reply,

The link to favicon is automatically generated by Joomla in file libraries/joomla/document/html/html.php on lines 581-594.

To remove it you can comment the line 591 (adding //):

Code: Select all

// $this->addFavicon(JUri::base(true) . '/' . $path . 'favicon.ico');
Important: this file is a core file so it can be modified during Joomla update.

You can also check if an extension managing the favicon could help: http://extensions.joomla.org/search?q=favicon

Best regards,
Rajoz

Thanks for help.

NickC4555
Joomla! Explorer
Joomla! Explorer
Posts: 457
Joined: Sun Jan 30, 2011 10:09 am
Location: Leicester, UK

Re: Favicon meta tag

Post by NickC4555 » Wed Sep 03, 2014 9:27 pm

You need more than just a single favicon now to be compatible with all platforms.

http://realfavicongenerator.net


Locked

Return to “Templates for Joomla! 3.x”