Page 1 of 2

[SOLVED] Favicon (how to add)

Posted: Sat Aug 27, 2022 3:59 pm
by ysyan
Hello friends,May I ask where to upload favicon with opencart 4.0? Thanks
There is no problem with opencart 3.x in uploading favicon,but no such function with 4.x;Any help would be greatly appreciated.

Re: Favicon

Posted: Sat Aug 27, 2022 4:53 pm
by thekrotek
You can simply upload favicon.ico it to your root folder.

Re: Favicon

Posted: Sat Aug 27, 2022 9:33 pm
by ysyan
thekrotek wrote:
Sat Aug 27, 2022 4:53 pm
You can simply upload favicon.ico it to your root folder.
How to upload favicon .ico to my root folder through admin ?Any help will be appreciated.

Re: Favicon

Posted: Sun Aug 28, 2022 12:27 am
by thekrotek
ysyan wrote:
Sat Aug 27, 2022 9:33 pm
thekrotek wrote:
Sat Aug 27, 2022 4:53 pm
You can simply upload favicon.ico it to your root folder.
How to upload favicon .ico to my root folder through admin ?Any help will be appreciated.
Use FTP

Re: Favicon

Posted: Sun Aug 28, 2022 8:58 pm
by ysyan
thekrotek wrote:
Sun Aug 28, 2022 12:27 am
ysyan wrote:
Sat Aug 27, 2022 9:33 pm
thekrotek wrote:
Sat Aug 27, 2022 4:53 pm
You can simply upload favicon.ico it to your root folder.
How to upload favicon .ico to my root folder through admin ?Any help will be appreciated.
Use FTP
But the favicon is not shown on webpage tap.

Re: Favicon

Posted: Sun Aug 28, 2022 9:44 pm
by thekrotek
ysyan wrote:
Sun Aug 28, 2022 8:58 pm
But the favicon is not shown on webpage tap.
Give it time, it will appear sooner or later if you did everything right.

Re: Favicon

Posted: Sun Aug 28, 2022 10:36 pm
by ysyan
thekrotek wrote:
Sun Aug 28, 2022 9:44 pm
ysyan wrote:
Sun Aug 28, 2022 8:58 pm
But the favicon is not shown on webpage tap.
Give it time, it will appear sooner or later if you did everything right.
Do it yourself then you will understand what I mean :)

Re: Favicon

Posted: Sun Aug 28, 2022 11:19 pm
by thekrotek
ysyan wrote:
Sun Aug 28, 2022 10:36 pm
Do it yourself then you will understand what I mean :)
I did it multiple times, so I know very well how it works.

Re: Favicon

Posted: Mon Aug 29, 2022 9:20 am
by ysyan
thekrotek wrote:
Sun Aug 28, 2022 11:19 pm
ysyan wrote:
Sun Aug 28, 2022 10:36 pm
Do it yourself then you will understand what I mean :)
I did it multiple times, so I know very well how it works.
My friend,I tried many times with 4.x but failed,I still dont know how to upload favicon when usgin opencart 4.000;
Also I face lot of problems after using opencart 4.000;for example,after changing the name of the admin folder,I can not upgrade the website as usual,i am very anxious and my boss is not happy with me so far;

Re: Favicon

Posted: Mon Aug 29, 2022 10:38 am
by straightlight
ysyan wrote:
Mon Aug 29, 2022 9:20 am
thekrotek wrote:
Sun Aug 28, 2022 11:19 pm
ysyan wrote:
Sun Aug 28, 2022 10:36 pm
Do it yourself then you will understand what I mean :)
I did it multiple times, so I know very well how it works.
My friend,I tried many times with 4.x but failed,I still dont know how to upload favicon when usgin opencart 4.000;
Also I face lot of problems after using opencart 4.000;for example,after changing the name of the admin folder,I can not upgrade the website as usual,i am very anxious and my boss is not happy with me so far;
Have you upgraded to OC v4.0.1.1 release? It was recently released.

Re: Favicon

Posted: Mon Aug 29, 2022 12:07 pm
by ysyan
straightlight wrote:
Mon Aug 29, 2022 10:38 am
ysyan wrote:
Mon Aug 29, 2022 9:20 am
thekrotek wrote:
Sun Aug 28, 2022 11:19 pm

I did it multiple times, so I know very well how it works.
My friend,I tried many times with 4.x but failed,I still dont know how to upload favicon when usgin opencart 4.000;
Also I face lot of problems after using opencart 4.000;for example,after changing the name of the admin folder,I can not upgrade the website as usual,i am very anxious and my boss is not happy with me so far;
Have you upgraded to OC v4.0.1.1 release? It was recently released.
My friend,I can not upgrade my website to 4.0.1.1 due to problems,but I install it locally,and I still dont know how to upload favicon with 4.0.1.1. You can do it yourself then you can find the problem is there,my friend.
Anyone help solving the problem, Others who use opencart 4.x may also encounter the same issue, I think.The sooner the problem is solved, the better the user benefits;

Re: Favicon

Posted: Wed Aug 31, 2022 5:14 am
by straightlight
ysyan wrote:
Mon Aug 29, 2022 12:07 pm
straightlight wrote:
Mon Aug 29, 2022 10:38 am
ysyan wrote:
Mon Aug 29, 2022 9:20 am

My friend,I tried many times with 4.x but failed,I still dont know how to upload favicon when usgin opencart 4.000;
Also I face lot of problems after using opencart 4.000;for example,after changing the name of the admin folder,I can not upgrade the website as usual,i am very anxious and my boss is not happy with me so far;
Have you upgraded to OC v4.0.1.1 release? It was recently released.
My friend,I can not upgrade my website to 4.0.1.1 due to problems,but I install it locally,and I still dont know how to upload favicon with 4.0.1.1. You can do it yourself then you can find the problem is there,my friend.
Anyone help solving the problem, Others who use opencart 4.x may also encounter the same issue, I think.The sooner the problem is solved, the better the user benefits;
What problems?

The sooner more information can be provided, the better forum supporters could resolve the issue.

Re: Favicon

Posted: Wed Aug 31, 2022 9:09 am
by ysyan
straightlight wrote:
Wed Aug 31, 2022 5:14 am
ysyan wrote:
Mon Aug 29, 2022 12:07 pm
straightlight wrote:
Mon Aug 29, 2022 10:38 am


Have you upgraded to OC v4.0.1.1 release? It was recently released.
My friend,I can not upgrade my website to 4.0.1.1 due to problems,but I install it locally,and I still dont know how to upload favicon with 4.0.1.1. You can do it yourself then you can find the problem is there,my friend.
Anyone help solving the problem, Others who use opencart 4.x may also encounter the same issue, I think.The sooner the problem is solved, the better the user benefits;
What problems?

The sooner more information can be provided, the better forum supporters could resolve the issue.
The main problem I encounter is:I can not find where and how to upload favicon when using opencart 4.0.1.1.Maybe there is no such function with 4.x.

Re: Favicon

Posted: Wed Aug 31, 2022 9:44 pm
by xxvirusxx
ysyan wrote:
Wed Aug 31, 2022 9:09 am
The main problem I encounter is:I can not find where and how to upload favicon when using opencart 4.0.1.1.Maybe there is no such function with 4.x.
Why you have upgraded to 4.0?
Better wait half year/ one year...

Also uploading ico should work just fine
https://github.com/opencart/opencart/bl ... r.php#L103

Re: Favicon

Posted: Thu Sep 01, 2022 2:37 pm
by ysyan
xxvirusxx wrote:
Wed Aug 31, 2022 9:44 pm
ysyan wrote:
Wed Aug 31, 2022 9:09 am
The main problem I encounter is:I can not find where and how to upload favicon when using opencart 4.0.1.1.Maybe there is no such function with 4.x.
Why you have upgraded to 4.0?
Better wait half year/ one year...

Also uploading ico should work just fine
https://github.com/opencart/opencart/bl ... r.php#L103
My friend,now I give up using 4.x and use 3.x instead, hoping 4.x will become strong and reliable,easy to be usded;I like opencart very much.

Re: Favicon

Posted: Sat Dec 31, 2022 6:58 am
by MadControl
ysyan wrote:
Sat Aug 27, 2022 3:59 pm
Hello friends,May I ask where to upload favicon with opencart 4.0? Thanks
There is no problem with opencart 3.x in uploading favicon,but no such function with 4.x;Any help would be greatly appreciated.
I just submitted this as a possible bug but was told by Daniel Kerr to do this in version 4.0.1 in Admin --> Design --> Themes

Here I was able to choose the common template and then header.twig
Around line 9, right after the title line add the link line:

<title>{{ title }}</title> **don't add this twice **
<link rel="icon" type="image/x-icon" href="/image/logo16x16.jpg">

Change your image name to the one you uploaded in admin and make sure you get the correct directory name, if needed.
You may have to use Ctrl + F5 to refresh browser cache when testing results.

I really like this Opencart and hope v4 comes along quickly from here on.

Re: Favicon

Posted: Sat Mar 25, 2023 9:06 pm
by Kinesiology
New FAVICON in 4.0.1.1

1. Go to your Opencart, through FTP (example FileZilla).
2. Find folders: public_html > image > catalog > opencart.ico
3. Upload your own favicon-image.
4. Erase the old "opencart.ico".
5. Rename your own favicon to " opencart.ico "
6. Check your opencart website.
7. Refresh with F5 and ctrl + F5.
8. Now you will see your new own favicon

Re: Favicon

Posted: Mon Apr 17, 2023 1:37 am
by ahmed219
I add this line <link rel="icon" type="image/x-icon" href="/image/favicon.ico">

in header.twig it is work now

Re: Favicon

Posted: Sun May 14, 2023 2:50 pm
by Reptile
ahmed219 wrote:
Mon Apr 17, 2023 1:37 am
I add this line <link rel="icon" type="image/x-icon" href="/image/favicon.ico">

in header.twig it is work now
I just tried to get the favicon working in 4.0.2.1 but I guess they removed the favicon line from the headers.twig or simply forgot to add them.
Without any reference to the location of your icon it will not display it.
When you add the line mentioned bij ahmed219 the icon will display.
Also the possibility to upload a icon is removed in the system settings.

Re: Favicon

Posted: Fri Aug 25, 2023 5:01 pm
by Jak_k
ahmed219 wrote:
Mon Apr 17, 2023 1:37 am
I add this line <link rel="icon" type="image/x-icon" href="/image/favicon.ico">

in header.twig it is work now
I'm using 4.0.2.2
Could you let me know please the best place to put that line in the file? i.e. the lines above and below as I don't want to hack away at it.
Also I have 2 header.twig files, one in admin_opencart\view\template\common and the other in catalog\view\template\common

It's easy for me to try editing both files but as I mentioned just worried about the best location for that line.