TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 488
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 241
  • Total: 241

Where to place code for Favicon

Started by madron, December 10, 2006, 04:18:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

madron

I am not sure where to place the code for a favicon on my portal.  I have it working on the web site.

I tried index template.php, in the theme I am using, didn't work.  I placed the code after <head> but before </head>, perhaps this is incorrect?

code:
<link rel="shortcut icon" href="favicon.ico" >

But do I put it in SMF index, TP, or Theme, or all of these?

Still new to coding...any help would be appreciated.


Lesmond

I didnt even use that code, I just put the favicon.ico in the root, and it shows up on all my sites

madron

#2
That worked!  thank you so very much!!!! *walks away beaming*

Edited to add:  I just hit F5 and it showed... simple stuff drives me nuts! lol

Lesmond


RoarinRow

I'd love to do this and couldn't get it to work.  I tried in the index.template.php right before </head> and put the favicon in the root and in the root of /forum and neither work.

I used this code - <link rel="shortcut icon" href="favicon.ico" >

and also the code with the URL directly to the ico and still no go.  Any suggestions?

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

madron

Remove that code if you haven't already.  Just upload the favicon to your root directory, refresh your page F5 and it should work on all your pages, mine did.

RoarinRow

Quote from: madron on December 11, 2006, 02:43:58 AM
Remove that code if you haven't already.  Just upload the favicon to your root directory, refresh your page F5 and it should work on all your pages, mine did.

you mean you didn't have to enter any code anywhere just the favicon.ico?  Wow, o.k. i'll try.

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

pvcblue

Quote from: RoarinRow on December 11, 2006, 02:17:08 AM
I'd love to do this and couldn't get it to work.  I tried in the index.template.php right before </head> and put the favicon in the root and in the root of /forum and neither work.

I used this code - <link rel="shortcut icon" href="favicon.ico" >

and also the code with the URL directly to the ico and still no go.  Any suggestions?

RoarinRow - upload your favicon to our Themes directory, then in your theme index.template.php find this line

<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>


after add this code

<link rel="shortcut icon" href="http://www.yoursite.com/forum/Themes/default/imagename.ico" />


RoarinRow

#8
Quote from: pvcblueâ„¢ on December 11, 2006, 03:55:34 AM
Quote from: RoarinRow on December 11, 2006, 02:17:08 AM
I'd love to do this and couldn't get it to work.  I tried in the index.template.php right before </head> and put the favicon in the root and in the root of /forum and neither work.

I used this code - <link rel="shortcut icon" href="favicon.ico" >

and also the code with the URL directly to the ico and still no go.  Any suggestions?

RoarinRow - upload your favicon to our Themes directory, then in your theme index.template.php find this line

<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>


after add this code

<link rel="shortcut icon" href="http://www.yoursite.com/forum/Themes/default/imagename.ico" />



I tried that and still no go.  I used this code:

<link rel="shortcut icon" href="http://www.avalanchestyle.com/forum/Themes/default/favicon.ico" />

Edit - I take that back.  I does work, but only with FF and Opera right now.  Not sure why IE7 is not taking right now?

Edit Edit - works on IE now   :2funny:

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

Balaganoff


This website is proudly hosted on Crocweb Cloud Website Hosting.