Page 1 of 1

[SOLVED] How to make custom favicon CMSMS v1.8

Posted: Thu Jul 08, 2010 12:47 am
by cronosmachine
I would like to claim these steps below are worked.

1. Current CMSMS v1.8

2. Make your self .ico from http://www.html-kit.com/favicon

3. Go to CMSMS admin panel
Extensions  » User Defined Tags  » Edit User Defined Tag:

4. Create name ' favicon' and insert

Code: Select all

if(isset($params['static']))
   echo '<link rel="shortcut icon" href="'.$params['static'].'" type="image/x-icon" />'."\n";

if(isset($params['animated']))
   echo '<link rel="icon" href="'.$params['animated'].'" type="image/gif" />'."\n";
5. Put in both favicon.ico and animated_favicon1.gif to the root, since i'm using xampp so i placed it at htdocs[1] folder and just in-case other copy to uploads/mytemplate[2] folder.

6. On Layout > Templates > Edit Template: mytemplate
And put the following two lines between html head tags in the template:

Code: Select all

[1]
  <head>
  <link rel="shortcut icon" href="favicon.ico">
  <link rel="icon" type="image/gif" href="animated_favicon1.gif"> 
....
</head>

Code: Select all

[2]
  <head>
  <link rel="shortcut icon" href="uploads/mytemplate/favicon.ico">
  <link rel="icon" type="image/gif" href="uploads/mytemplate/animated_favicon1.gif"> 
....
</head>
7. Extra, if still not show up. On your browser make sure clear cache restart browser or restart computer if necessary.

Re: How to make custom favicon CMSMS v1.8

Posted: Thu Jul 08, 2010 12:51 am
by Dr.CSS
http://lmgtfy.com/?q=how+to+make+favicons+work

Me, I just put it in the root and it works, never had to call it in the template or anything...

Re: How to make custom favicon CMSMS v1.8

Posted: Thu Jul 08, 2010 2:56 am
by jmcgin51
make the favicon, put it in the root of your CMSMS installation, and you're done.  That's it.  There are no CMSMS-specific instructions.  It works just like any other site.  If you did something else before, it wasn't necessary.

Re: How to make custom favicon CMSMS v1.8

Posted: Sat Jul 10, 2010 4:16 pm
by luminous
Fav icons can be notoriously reluctant to appear in your browser.  I'd suggest closing down your browsers, clearing their caches and trying again.

In Firefox when I was last fiddling with a favicon i had to clear the cache and restart the browser before it would show up.

I do have this line in my html head
 
I honestly do not know if you need it with CMSMS, but I have that and it works.  The icon lives in the root directory of my server.

Re: How to make custom favicon CMSMS v1.8

Posted: Sun Jul 11, 2010 4:35 am
by jpatti
You can also get the new one to show up by going to the direct URL of the thing.  For instance, in my Xammp, I can navigate to the favicon directly via http://localhost/cms/favicon.ico and once you've been there, the old one is dumped from the cache and the new one shows up when you go back to the page.