MyBB Community Forums
How to add favicon without plugin - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Tutorials (https://community.mybb.com/forum-38.html)
+--- Thread: How to add favicon without plugin (/thread-225988.html)



How to add favicon without plugin - Mastersly - 2020-01-08

How to add favicon without using a plugin
Find a image you want to use like a favicon and use this website to make it favicon.ico
https://favicon.io/favicon-converter/
Download your favicon.ico and upload it in your root folder
then go
AdminCP >> Templates & Style >> Templates >> your theme templates >> Ungrouped Templates >> headerinclude
and add at beginning of headerinclude template
Quote:<link rel="Shortcut icon" href="{$mybb->settings['bburl']}/favicon.ico" />

hard-refresh the page a couple of times. Wink 


RE: How to add favicon without plugin - [ExiTuS] - 2020-01-08

Another great editor to create a favicon is http://www.xiconeditor.com/

Alternatively insert this meta tags:
Quote:<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">

Modern browser can handle image file with another format (png, jpg) to use as a favicon. It's not common, so better keep use a regular favicon.ico when possible.

BTW, some web browsers have internal mechanisms to refresh favicons, so don't wonder when a manual refresh is not working for the moment. Just wait.

[ExiTuS]