Favicons are little creatures. I suggest you think about them a little differently. Imagine your phpBB board has an app, and you're looking at it in the applications menu of your phone. Does it have a black or white background? This is your website icon, think and characterize your favicon without a background.
For example, phpBB Group removes the white background of the application icon and uses the remaining shape as the favicon or adds a background to the favicon and uses it as the application icon.
The classic way is to save your site icon in .ico format. You can convert it from various tools or export your image in .ico format in Photoshop or photopea.com. Even name it
favicon.ico
. But not necessarily, it can be in png format.Once you have the favicon for your phpBB forum, upload it to the /images folder in phpBB root. Then open the template/overall_header.html file of your style and find the following section.
Code: Select all
</head>
Code: Select all
<link rel="shortcut icon" href="/images/favicon.ico">
If you're worried about not being able to preserve the code in style updates, or if you don't want to mess with template files, I've created an extension for you that adds this code to the style.
Upload and export to /ext folder in phpBB root, then enable it from ACP. If you need to edit the code, edit /ext/phpbbgroup/favicon/styles/prosilver/template/event/overall_header_stylesheets_after.html.
Best.