Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: SALocalcom on June 27, 2020, 11:00:52 AM

Title: Script and location to add local favicon in the forum folder?
Post by: SALocalcom on June 27, 2020, 11:00:52 AM
If I wanted to put the forums favicon in the folder with the forum, where and how would I do that?

The main directory of the website has its own favicon, but I want the forum to have its own.

So would I put this in the index.php somewhere?....or somewhere else?

<link rel="icon" type="image/png" href="https://absolute forum url/favicon.png">

Thanks!
Title: Re: Script and location to add local favicon in the forum folder?
Post by: Doug Heffernan on June 27, 2020, 11:10:54 AM
Quote from: SALocalcom on June 27, 2020, 11:00:52 AM
If I wanted to put the forums favicon in the folder with the forum, where and how would I do that?

The main directory of the website has its own favicon, but I want the forum to have its own.

So would I put this in the index.php somewhere?....or somewhere else?

<link rel="icon" type="image/png" href="https://absolute forum url/favicon.png">

Thanks!

Simply upload the favicon.ico file in the root of your forum folder.
Title: Re: Script and location to add local favicon in the forum folder?
Post by: SALocalcom on June 28, 2020, 08:34:46 PM
Yeah, I uploaded the favico.png it was mad from, instead of the ico.   Oops, I'll try the favicon.ico.
Title: Re: Script and location to add local favicon in the forum folder?
Post by: SALocalcom on June 29, 2020, 07:37:59 AM
Quote from: Doug Heffernan on June 27, 2020, 11:10:54 AM

Simply upload the favicon.ico file in the root of your forum folder.

No, I was wrong.  I did put the correct favicon.ico in the folder of the forum.  It didn't work.

The site where I got the png file turned into an ico.....it came with a bunch of pngs and this code and a manifest file.

<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">

I didn't want to use the manifest file because I can't open it to see what's in it.

Thanks
.
Title: Re: Script and location to add local favicon in the forum folder?
Post by: Kindred on June 29, 2020, 02:53:38 PM
it may take some time for an .ico file to be recognized (browsers are set to cache this information and not rescan every time)

However, if you want to put that stuff, it would have ot be place din (every) theme's index.template.php in an echo statement just before the closing </head> tag...