Favicon Placement

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
Do I need to put my favicon in my themes images folder or where should I put the image.
11 years ago
If using no source version, put in web root folder (i.e. same place as global.asax & web.config)
If using Visual Studio (source code), then put in root of project Nop.Web

(you may have to flush your browser cache to see it)
11 years ago
Do I need to name it something specific, because I have a custom name .ico and have it in the root and it still does not show. I also cleared the cache and does not show. I wanted to have the icon in the images folder with all other images, is this possible or does it need to be in the root.

Thanks
11 years ago
Pdesignz wrote:
Do I need to name it something specific, because I have a custom name .ico and have it in the root and it still does not show. I also cleared the cache and does not show. I wanted to have the icon in the images folder with all other images, is this possible or does it need to be in the root.

Thanks


It must be named favicon.ico, and must be put at the root. You can of course change the default behaviour, but then you have to customize the core. :)
11 years ago
Got it! As always Lam thanks for the help and response...
11 years ago
you can give the any path also by adding the following line insideyour head tag it in your  Presentation/Nop.Web/Views/Shared/_Root.Head.cshtml file.

<link rel="shortcut icon" href="http://www.yourstore.com/favicon.ico" />

http://www.elaamart.com
11 years ago
I kept the favicon on root of the store but does not seem to be working for my store www.PenandPaper.co.in .

Do i need to recycle/refresh the store?
11 years ago
Hard links are not the best practice. It would be better to insert <link rel="shortcut icon" href="~/favicon.ico" /> (or whatever you want to name your icon file) into the /Views/Shared/_Roots.Head.cshtml file somewhere inside the head tags.
Injecting the shortcut icon line into the header is necessary for IE, it isn't needed for FireFox.

@wooncherk, You're correct regarding the ~, I don't know what I was typing the correct tag is: <link rel="shortcut icon" href="/CCWPicon.ico" />

Replacing CCWPicon.ico with whatever your .ico file is named placed in the root
11 years ago
llabbott77 wrote:
Hard links are not the best practice. It would be better to insert <link rel="shortcut icon" href="~/favicon.ico" /> (or whatever you want to name your icon file) into the /Views/Shared/_Roots.Head.cshtml file somewhere inside the head tags.
Injecting the shortcut icon line into the header is necessary for IE, it isn't needed for FireFox.


<link rel="shortcut icon" href="~/favicon.ico" /> wont work. HTML doesn't understand ~/. Try @Url.Content("~/favicon.ico") instead. :D
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.