News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Script and location to add local favicon in the forum folder?

Started by SALocalcom, June 27, 2020, 11:00:52 AM

Previous topic - Next topic

SALocalcom

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!

Doug Heffernan

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.

SALocalcom

Yeah, I uploaded the favico.png it was mad from, instead of the ico.   Oops, I'll try the favicon.ico.

SALocalcom

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
.

Kindred

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...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: