[SOLVED] add favicon

Blueeyez
Posts: 12
Joined: Tue Sep 30, 2014 8:23 pm

[SOLVED] add favicon

Post 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)
Last edited by Blueeyez on Tue Oct 21, 2014 10:26 pm, edited 1 time in total.
Blueeyez
Posts: 12
Joined: Tue Sep 30, 2014 8:23 pm

Re: add image to title

Post 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..
User avatar
turboblack
Posts: 198
Joined: Fri Sep 19, 2014 1:53 pm

Re: add image to title

Post 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 :)

у меня всё работает :)))
http://old.net.eu.org/ Get ready to hamsterization! 8-) code takes less than a kilobyte! shock!
https://github.com/turboblack/HamsterCMS new version for PHP 8 with new templates
Blueeyez
Posts: 12
Joined: Tue Sep 30, 2014 8:23 pm

Re: add image to title

Post by Blueeyez »

Dosent work for me :-/
Does it have to be an .ico and can i create an .ico wrong?
User avatar
turboblack
Posts: 198
Joined: Fri Sep 19, 2014 1:53 pm

Re: add image to title

Post 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
http://old.net.eu.org/ Get ready to hamsterization! 8-) code takes less than a kilobyte! shock!
https://github.com/turboblack/HamsterCMS new version for PHP 8 with new templates
Blueeyez
Posts: 12
Joined: Tue Sep 30, 2014 8:23 pm

Re: add image to title

Post 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 :-/
User avatar
turboblack
Posts: 198
Joined: Fri Sep 19, 2014 1:53 pm

Re: add image to title

Post 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
http://old.net.eu.org/ Get ready to hamsterization! 8-) code takes less than a kilobyte! shock!
https://github.com/turboblack/HamsterCMS new version for PHP 8 with new templates
Blueeyez
Posts: 12
Joined: Tue Sep 30, 2014 8:23 pm

Re: add image to title

Post 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...
mary
Posts: 5
Joined: Mon Aug 08, 2016 9:50 am

Re: add favicon

Post by mary »

Dosent work for me :-/
Does it have to be an .ico and can i create an .ico wrong?
User avatar
turboblack
Posts: 198
Joined: Fri Sep 19, 2014 1:53 pm

Re: add favicon

Post 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
http://old.net.eu.org/ Get ready to hamsterization! 8-) code takes less than a kilobyte! shock!
https://github.com/turboblack/HamsterCMS new version for PHP 8 with new templates
Post Reply