Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

How to change favicon in nextjs.

import Head from 'next/head'

export default function Home() {
  return (
    <div className="container">
      <Head>
        <title>Next App</title>
        <link rel="icon" href="/favicon.ico" />
      </Head>

      <p>other code goes here..</p>
    </div>
  )
}
Comment

add favicon in nextjs

<Head>
    <link rel="apple-touch-icon" sizes="57x57" href="/favicons/apple-touch-icon-57x57.png" />
    <link rel="apple-touch-icon" sizes="60x60" href="/favicons/apple-touch-icon-60x60.png" />
    <link rel="apple-touch-icon" sizes="72x72" href="/favicons/apple-touch-icon-72x72.png" />
    <link rel="apple-touch-icon" sizes="76x76" href="/favicons/apple-touch-icon-76x76.png" />

    <link rel="apple-touch-icon" sizes="114x114" href="/favicons/apple-touch-icon-114x114.png" />
    <link rel="apple-touch-icon" sizes="120x120" href="/favicons/apple-touch-icon-120x120.png" />
    <link rel="apple-touch-icon" sizes="144x144" href="/favicons/apple-touch-icon-144x144.png" />
    <link rel="apple-touch-icon" sizes="152x152" href="/favicons/apple-touch-icon-152x152.png" />
    <link rel="apple-touch-icon" sizes="167x167" href="/favicons/apple-touch-icon-167x167.png" />
    <link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon-180x180.png" />

    <link rel="icon" type="image/png" sizes="16x16" href="/favicons/favicon-16x16.png" />
    <link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png" />
    <link rel="icon" type="image/png" sizes="96x96" href="/favicons/favicon-96x96.png" />
    <link rel="icon" type="image/png" sizes="128x128" href="/favicons/favicon-128x128.png" />
    <link rel="icon" type="image/png" sizes="196x196" href="/favicons/favicon-196x196.png" />
    <link rel="icon" type="image/png" sizes="192x192" href="/favicons/android-chrome-192x192.png" />
    <link rel="icon" type="image/png" sizes="512x512" href="/favicons/android-chrome-512x512.png" />

    <link rel="shortcut icon" href="/favicons/favicon.ico" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="mobile-web-app-capable" content="yes" />

    <meta name="msapplication-TileImage" content="/favicons/mstile-144x144.png"/>
    <meta name="msapplication-square70x70logo" content="/favicons/mstile-70x70.png"/>
    <meta name="msapplication-square150x150logo" content="/favicons/mstile-150x150.png"/>
    <meta name="msapplication-square144x144logo" content="/favicons/mstile-144x144.png"/>
    <meta name="msapplication-square310x310logo" content="/favicons/mstile-310x310.png"/>
</Head>
Comment

PREVIOUS NEXT
Code Example
Javascript :: regex for first three characters 
Javascript :: hwo to create an array filled with sequencial numbers 
Javascript :: discord.js create unexipable invite 
Javascript :: ScrollController not attached to any scroll views 
Javascript :: javascript object toarray 
Javascript :: refresh date and time every second angular 
Javascript :: js reverse array loop 
Javascript :: install tailwind nextjs 
Javascript :: mui usetheme 
Javascript :: how to ask input in javascript 
Javascript :: javascript max safe integer 
Javascript :: validator pattern angular for number only 
Javascript :: how to set height dynamically in jquery 
Javascript :: import fa icons react 
Javascript :: create an array of numbers by numbers range in angular 
Javascript :: solid icons in next js 
Javascript :: get rid of header bar react native 
Javascript :: prevent reload javascript 
Javascript :: change placeholder text jquery 
Javascript :: install the same version of package in the package.json 
Javascript :: disable option dropdown jquery 
Javascript :: javascript select all table rows 
Javascript :: local storage check max size 
Javascript :: get actual url in variable 
Javascript :: aos library animation angular 
Javascript :: sum of positive javascript 
Javascript :: angular input change event 
Javascript :: get h1 text javascript 
Javascript :: BROWSER=none npm start exited with code 1 
Javascript :: javascript update url without reload 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =