how to add favicon to your website?

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
Sesztak
Posts: 172
Joined: Fri Jun 24, 2016 2:19 am

how to add favicon to your website?

Postby Sesztak » Sun Jul 31, 2016 7:51 am

Dear JS-Support,

is there any way to add favicon to your website from CSHTML5 project (not to edit index.html directly)?

Background info: if we want to add favicon to a web site we should edit start page (e.g. index.html) directly, e.g.:
add the following code to the <head> element:

<link rel="icon" href="http://example.com/favicon.png">
or
<link rel="shortcut icon" href="myCustomXYZFavicon.PNG">

So, our question: is it possible to do that from VisualStudio/CSHTML5 project and how?

(it's not practical to edit index.html manually as above stated, as this file is allways overwritten by CSHTML5 build)

Thanks in advance,
Best Regards,
Péter

hrodriguez
Posts: 2
Joined: Thu Aug 24, 2017 10:58 am

Re: how to add favicon to your website?

Postby hrodriguez » Mon Aug 24, 2020 1:54 pm

Hello

Could you tell me how did you address this issue?

Thank you

MichaelHughes
Posts: 41
Joined: Thu Oct 08, 2015 5:33 am

Re: how to add favicon to your website?

Postby MichaelHughes » Tue Aug 25, 2020 4:34 pm

I edit the index.html file as I require a loading screen and I prefer the app stuff in the dir as it was version 1.
So I have a routine that is run after compilation to "tidy up". Mine is part of the compilation process but I thought you could add it as a post compilation action in version 2.

However I also believe that if you put the favicon in the route directory the browser will also pick it up without the entries in the index.html


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 7 guests