MyBB Community Forums

Full Version: How to add favicon without plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 
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]