Add favicon to xataface

98 views
Skip to first unread message

Alessandro Peretti

unread,
Nov 23, 2016, 9:18:46 AM11/23/16
to Xataface
Dear all, 


I have tried to add a favicon inside my web application. This is what I did inside the templates/Dataface_Main_Template.html file:

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


Indeed, I also inserted the favicon.ico in the correct path specified in the href instance but nothing happens.


Many thanks,


Alessandro.


Alessandro Peretti

unread,
Nov 24, 2016, 12:01:24 PM11/24/16
to Xataface
I am also trying the method in the following code:

 $app->addHeadContent('<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />');

It allows to add some code to the head of each application's template as Steve told here.
Also in this case, I get some troubles cause of I cannot see the favicon in my web applcation.

Alessandro.

Steve Hannah

unread,
Nov 24, 2016, 1:35:03 PM11/24/16
to xata...@googlegroups.com
Make sure the favicon is in the root of your domain.  Can't be in a subdirectory.

--
You received this message because you are subscribed to the Google Groups "Xataface" group.
Visit this group at https://groups.google.com/group/xataface.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/3ce41005-d1f6-4395-b38c-7c9524dba2d1%40googlegroups.com.



--
Steve Hannah
Web Lite Solutions Corp.
Message has been deleted

Steve Hannah

unread,
Nov 24, 2016, 2:41:09 PM11/24/16
to xata...@googlegroups.com
Check the network monitor in your browser.  It will likely report the 404 error when trying to load the favicon.  You can hunt down the problem from there

Steve

On Thu, Nov 24, 2016 at 11:31 AM, Alessandro Peretti <alessandro.p...@gmail.com> wrote:
$app->addHeadContent(sprintf('<link rel="shortcut icon" type="image/x-icon" href="%s"/>', htmlspecialchars(DATAFACE_SITE_URL.'/favicon.ico')));

However, nothing is happening.. favicon.ico is in the URL linked by DATAFACE_SITE_URL variable.

Alessandro. 

Name Surname: Alessandro Peretti
Fax: (+39)07331771201
Mobile Phone: (+39)3407652586


2016-11-24 19:35 GMT+01:00 Steve Hannah <st...@weblite.ca>:
Make sure the favicon is in the root of your domain.  Can't be in a subdirectory.

On Thu, Nov 24, 2016 at 9:01 AM, Alessandro Peretti <alessandro.peretti.unicam@gmail.com> wrote:
I am also trying the method in the following code:

 $app->addHeadContent('<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />');

It allows to add some code to the head of each application's template as Steve told here.
Also in this case, I get some troubles cause of I cannot see the favicon in my web applcation.

Alessandro.

Il giorno mercoledì 23 novembre 2016 15:18:46 UTC+1, Alessandro Peretti ha scritto:
Dear all, 


I have tried to add a favicon inside my web application. This is what I did inside the templates/Dataface_Main_Template.html file:

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


Indeed, I also inserted the favicon.ico in the correct path specified in the href instance but nothing happens.


Many thanks,


Alessandro.


--
You received this message because you are subscribed to the Google Groups "Xataface" group.
Visit this group at https://groups.google.com/group/xataface.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/3ce41005-d1f6-4395-b38c-7c9524dba2d1%40googlegroups.com.



--
Steve Hannah
Web Lite Solutions Corp.

--
You received this message because you are subscribed to a topic in the Google Groups "Xataface" group.

--
You received this message because you are subscribed to the Google Groups "Xataface" group.
Visit this group at https://groups.google.com/group/xataface.
Reply all
Reply to author
Forward
0 new messages