Page 1 of 2

[SOLVED] add favicon

Posted: Wed Oct 15, 2014 7:11 pm
by Blueeyez
Im just wondering how to add faivcon to my website?
This is the code i found:

Code: Select all

<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
but i dont know where to put it.. i know there is a index.php, but im not sure if i can edit / add this code at if it will work.. (Im not a programmer, but find wondercms very smart since its very lightweight and not too hard to use (but still there is parts its hard, but we cant get everything at once)

Re: add image to title

Posted: Wed Oct 15, 2014 7:21 pm
by Blueeyez
Just tried to add the code to the blue theme, but then i got an error when i wanted to go to my website..

Re: add image to title

Posted: Thu Oct 16, 2014 11:39 am
by turboblack
paste the code into the template of your site before the page title:

Code: Select all

<!doctype html>
<html lang="ru">
<head>
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<?php
and so on :)

у меня всё работает :)))

Re: add image to title

Posted: Thu Oct 16, 2014 1:43 pm
by Blueeyez
Dosent work for me :-/
Does it have to be an .ico and can i create an .ico wrong?

Re: add image to title

Posted: Fri Oct 17, 2014 11:24 am
by turboblack
can you try that http://www.favicon.cc ? :)

I did exactly as written above, and I have all turned out, maybe you did the wrong file format

Re: add image to title

Posted: Fri Oct 17, 2014 5:00 pm
by Blueeyez
I put this code in the theme.php

<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />

i went to facivon.cc and i uploaded the image, then i downloaded it as favicon.ico and put it inside the theme folder (blue) where the theme.php is located

But still not working :-/

Re: add image to title

Posted: Fri Oct 17, 2014 5:55 pm
by turboblack
favicon should be in the root of the directory site, and the line of code must be before

Code: Select all

<?php


that is almost the very beginning of the script

Code: Select all

<!doctype html>
<html lang="ru">
<head>
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<?php
the fourth line of your template file theme.php

Re: add image to title

Posted: Fri Oct 17, 2014 5:59 pm
by Blueeyez
I have a good news and a bad news..

I got it working, but only if i use this as the destination:

Code: Select all

http://ubuntu.hu/sites/default/files/udtheme_favicon.ico
if i type favicon.ico or the link to the facivon it still wont work...

Re: add favicon

Posted: Mon Aug 08, 2016 10:10 am
by mary
Dosent work for me :-/
Does it have to be an .ico and can i create an .ico wrong?

Re: add favicon

Posted: Tue Aug 09, 2016 4:45 am
by turboblack
mary wrote:Dosent work for me :-/
Does it have to be an .ico and can i create an .ico wrong?
It is not only in the icon, it is that you need to place code in the engine core that he realized that the need to open your icon. code posted above