Page 1 of 1
Inject Shortcut Icon
Posted: Thu Mar 01, 2007 1:57 am
by Rodnox
Well,
i`ve been trying to use a shortcuticon. Usualy the code is:
Code: Select all
<link type="image/x-icon" rel="shortcut icon" href="http://www.mywebsite.xx/shortcuticon.ico" />
An this code works well ..... if you have a usual website, where you can modify the index.php. But in S9Y the index.php is not a usual index.php it is an interactive site wich creates itself from different files. And as if i was expecting it, it won`t work with the code. In fact the blog can´t be loaded anymore if i copy this code in the index.php.
Now ... where or in wich file do i have to copy the code?
I trickt the system and added the code into a html nugget. Works in the adressbar, but the favourite Icon is still the Firefox standart. So i still try to find a way to place the code in the index.php.
Can somebody help?
Posted: Thu Mar 01, 2007 2:52 am
by Don Chambers
Possibly index.tpl in your template directory.
Posted: Thu Mar 01, 2007 2:59 am
by Rodnox
there is just one problem: There is no index.tpl ....
Should i creat one?
[edit]
lol
Just tryed to create a index.tpl and added the code into.
Now the Shortcut workes well in adressbar and favlist. But the blog doesnt load at all anymore. The Page stays white.
...
Posted: Thu Mar 01, 2007 3:07 am
by Don Chambers
Rodnox wrote:there is just one problem: There is no index.tpl ....
Should i creat one?
You have no /rodlog/templates/framelines/index.tpl???? You sure about that?
Posted: Thu Mar 01, 2007 3:11 am
by Rodnox
as i just changed my last post, no i dont have it.
But i created one and .. well .. read it up there.
Posted: Thu Mar 01, 2007 3:21 am
by Don Chambers
I'm going to guess that if you do not have an index.tpl file, then it will load the file from /templates/default/.
If that is the case, you can copy the index.tpl file from the /default/ folder, and place it in your specific template folder (/rodlog/templates/framelines/). Add the code there.
Posted: Thu Mar 01, 2007 3:27 am
by Rodnox
You`ve been right and wrong.
Yes it did load the index.tpl from the default folder.
But if i modify this one and copy it into my frameline folder, the same probleme happens again. The page stays white.
But .....
.. if i just modify the default index.tpl and leave it where it is, i get the wanted result. So thank you for that guess
[edit]
Actualy, the flippin favourite bar still doesnt show me the flippin shortcut icon, as it does with the most of the other pages.....
Might be a matter of the code itself. I´ll try another board wich is specialised on css. Thanks anyway.
Posted: Thu Mar 01, 2007 4:03 am
by Don Chambers
You are using this:
Code: Select all
<link type="image/x-icon" rel="shortcut icon" href="http://www.rodnox.de/rodlog/shortcuticon.ico" />
You could try using all of these with your image in the root of your server:
Code: Select all
<link rel="shortcut icon" href="favicon.ico" >
<link rel="shortcut icon" href="favicon.ico" icon type="image/icon" >
<link rel="favicon" href="favicon.ico" type="image/icon">
I am no expert on this. I seem to remember trying to figure this stuff out in better detail quite some time ago. Do not recall my conclusions, but I have this vague recollection that the file name needed to be favicon. I could be wrong there.
Some browsers also do not update this either a) immediately, or b) if it has already been set. Google favicon and maybe there is more info out there.
I'm not sure why you are getting a blank page when the index.tpl file is located in your actual template folder..... again - maybe that is something that other's can offer input on.
Anyway, I've taken this about as far as I can. My knowledge is limited. Hopefully my latest suggestion will work, you will figure it out on your own, or someone more knowledgeable will offer better input.