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

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
cronosmachine
Forum Members
Forum Members
Posts: 23
Joined: Thu Jun 17, 2010 12:48 am

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

Post 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.
Last edited by cronosmachine on Mon Jul 12, 2010 3:06 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How to make custom favicon CMSMS v1.8

Post 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...
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: How to make custom favicon CMSMS v1.8

Post 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.
luminous
Forum Members
Forum Members
Posts: 168
Joined: Fri May 14, 2010 6:49 pm

Re: How to make custom favicon CMSMS v1.8

Post 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.
jpatti
Forum Members
Forum Members
Posts: 41
Joined: Mon Jun 28, 2010 1:43 am

Re: How to make custom favicon CMSMS v1.8

Post 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.
Post Reply

Return to “Layout and Design (CSS & HTML)”