Apple Touch Icon
Hi to all,
Can someone help me adding apple touch icon to the xxx.blade.php of my site. So that when is added as shortcut it shows the icon.
Thanks
Check out https://favicon.io/ where you can generate the favicon set for your site, and then add the following to the <head> of your layout
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
@tykus Hi, and in wich file do i add the code?
@h3ld3r50 That depends on how your views are structured. Do you extend a Blade layout, or use Blade components?
@tykus hi, is a Blade Layout. Thanks.
@h3ld3r50 okay, so your Blade layout should have something like where you can add the link elements for the favicons:
<!DOCTYPE html>
<html>
<head>
<!-- meta, title, stylesheets etc. -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
</head>
Based on the paths above; you are going to be adding the .png files into your public directory
Please or to participate in this conversation.