#favicon not being displayed

10 messages · Page 1 of 1 (latest)

chilly spruce
autumn crescentBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

chrome root
#

does your browser console throes any 404 errors?

#

some browsers fetches the /favicon.ico directly from the root dir (/public in laravel case) so make sure to have a copy in there or change it path to the public

#

The format may cuase an issue too, make sure it's .ico and check from different browsers as well as refreshing the browser cache (ctrl/cmd + shift + r)

neat igloo
#

first try php artisan optimize

#

You can also configure favicon globally from the <head> of your layout file.

        <link rel="icon" href="{{ asset('favicon.ico')}}" sizes="32x32">

        <link rel="icon" type="image/svg+xml" sizes="any" href="data:image/svg+xml,...">

        <link rel="apple-touch-icon" href="{{ asset('apple-touch-icon.png')}}">

        <link rel="manifest" href="{{ asset('site.webmanifest') }}">```
chilly spruce
#

Oh hi, i fixed by changing the default favicon.ico from the public directory.

chilly spruce
chilly spruce