Re: how to add Favicon SMF 2.0.9

Started by mobileduke, June 30, 2015, 11:00:09 AM

Previous topic - Next topic

mobileduke

Hi, I have tried all configurations to add a favicon to my site but nothing works.
The following is located in my themes as "home.php"
I,m not much of a computer guru and am trying to learn this php stuff so, maybe someone can help me figure out how to implement a favicon to make this work.
I have the img uploaded to the root as a .gif in "favicon.ico" file and 16x16.
Getting it to work is another story--obviously.
Any help would truelly be appreciated!



<!DOCTYPE html>


<html>



<head>





<?php

   include ( "core/inc.meta.php" ) ;



?>

</head>

<body class="js-enabled">

   <div id="main" style="width: 100%;">

      <div id="top">

         <?php include("inc.header.php");?>

                        <?php echo $application->getNotifier($app_init_data['CurrentSkin']); ?>

         

                        <div id="pagestatus_new" style=""></div>

      </div>

           

njtweb


Illori

i think the issue is that the file is not an actual ico file. if you dont know how to create an ico file, google and you should find converters.

njtweb

Google dynamicdrive icon generator.

Gluz

If a "favicon.ico"(true .ico file) is placed in the root directory should work on almost all browsers with no edit needed, but if you want to add a .gif or .png you need to edit the index.template.php of your theme and add something like this just after the header tag:
<link rel="icon" type="image/png" href="/path/to/favicon/image.png" />


Also, SMF does not have "home.php", and what you include is from something else not related with SMF.

RedPanda2013


Illori

you dont need any mod to add a favicon. also next time please dont bump an old topic.

https://wiki.simplemachines.org/smf/Favicon.ico

RedPanda2013

Quote from: Illori on June 09, 2017, 09:46:34 AM
you dont need any mod to add a favicon. also next time please dont bump an old topic.

https://wiki.simplemachines.org/smf/Favicon.ico

thank you and sorry for bumping this one then.

Advertisement: