Preferred way to add a favicon?

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
orschiro
Registered User
Posts: 35
Joined: Fri Jan 05, 2018 6:04 am

Preferred way to add a favicon?

Post by orschiro »

Hi all!

I found some old posts regarding setting a favicon but was wondering what's the most preferred to add favicon these days?

- Modify the header template?
- Upload favicon.ico to root?
- Using an extension?
User avatar
Prosk8er
Registered User
Posts: 1744
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

Re: Preferred way to add a favicon?

Post by Prosk8er »

hi you shouldn't need to alter anything anymore most browsers will pick it up
just upload it to your forum root and your good to go

i didn't alter anything on my sites just put it in forum root and it picks it up in the browser
orschiro
Registered User
Posts: 35
Joined: Fri Jan 05, 2018 6:04 am

Re: Preferred way to add a favicon?

Post by orschiro »

just upload it to your forum root and your good to go
.ico, svg or png?

What did you use?
FlaSerIC
Registered User
Posts: 67
Joined: Tue Nov 27, 2018 9:48 pm
Location: NH, Netherlands

Re: Preferred way to add a favicon?

Post by FlaSerIC »

User avatar
Prosk8er
Registered User
Posts: 1744
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

Re: Preferred way to add a favicon?

Post by Prosk8er »

.ico
User avatar
EA117
Registered User
Posts: 2158
Joined: Wed Aug 15, 2018 3:23 am
Contact:

Re: Preferred way to add a favicon?

Post by EA117 »

Not sure what posts you've already read, but the main reason you might choose to do "more than just dropping a favicon in the root of the site" is when you want to provide platform-appropriate representations which allow assets that are larger than what a favicon can provide. Starting with just the favicon.ico is fine, and you can always do more later when you want to.

By "more" I mean instead of users of these other platform representations seeing a stretched 32x32 or 48x48 favicon.ico image, they see up to a full 256x256 or 512x512 image containing either the same or a completely different image for representing your site in these higher-resolution scenarios. Plus for some platforms an icon background or border color choice that is unique to your site.

For example, https://realfavicongenerator.net/ will help you generate not just an appropriate favicon.ico, but also an image appropriate for an iOS home screen icon the user may create for your site, an Android home screen icon the user may create for your site, an image that Windows 10 and Windows 8 would use if users pin your web site, etc. Hit the "Demo with random image" button on the site to be shown an example of the different platforms it supports and the options for each one.

Yes, this involves a bunch of meta tags that need to be added to the HTML that your phpBB site generates, which is something you could maintain along with other style customizations you're already maintaining, or you could find a phpBB extension which lets you add <head> data to your pages without having to modify the style. The https://realfavicongenerator.net/ site provides you with exactly what all the needed HTML directives are, along with providing the actual assets themselves.

For example, this post shows what was added to the overall_header.html to make use of all the assets generated by the site.
orschiro
Registered User
Posts: 35
Joined: Fri Jan 05, 2018 6:04 am

Re: Preferred way to add a favicon?

Post by orschiro »

Thanks all!

So I will go with a default favicon.ico in root for now.

EDIT:

Just found this extension too which looks promising if you want to add an SVG favicon!

viewtopic.php?f=456&t=2275361&p=13809226#p13809226
Post Reply

Return to “[3.3.x] Support Forum”