website icon

Dodanie Ikony strony:

<link rel="shortcut icon" type="image/x-icon" href="/images/fico/favicon.ico">
<link rel="apple-touch-icon" sizes="57x57" href="/images/fico/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/images/fico/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/images/fico/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/images/fico/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/images/fico/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/images/fico/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/images/fico/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/images/fico/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/images/fico/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/images/fico/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="128x128" href="/images/fico/favicon-128x128.png">
<link rel="icon" type="image/png" sizes="96x96" href="/images/fico/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="144x144" href="/images/fico/favicon-144x144.png">
<link rel="icon" type="image/png" sizes="72x72" href="/images/fico/favicon-72x72.png">
<link rel="icon" type="image/png" sizes="48x48" href="/images/fico/favicon-48x48.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/fico/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/fico/favicon-16x16.png">
<link rel="manifest" href="/images/fico/manifest.json">
<link rel="manifest" href="/images/fico/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#ff0031">
<meta name="application-name" content="websceneme"/>
<meta name="msapplication-TileColor" content="#ff0031">
<meta name="msapplication-TileImage" content="/images/fico/ms-icon-144x144.png">
<meta name="msapplication-square70x70logo" content="/images/fico/ms-icon-70x70.png" />
<meta name="msapplication-square150x150logo" content="/images/fico/ms-icon-150x150.png" />
<meta name="msapplication-wide310x150logo" content="/images/fico/ms-icon-310x150.png" />
<meta name="msapplication-square310x310logo" content="/images/fico/ms-icon-310x310.png" />
<meta name="theme-color" content="#ff0031">

dobry generator favicon

WP – dodanie favicon poprzez function.php

function myfavicon() {
        echo '<link rel="Shortcut Icon" type="image/x-icon" href="'.get_bloginfo('wpurl').'/favicon.ico" />';
        echo '<link rel="shortcut icon" href="'. get_theme_file_uri('/favicon.ico').'"/>';
}
add_action('wp_head', 'myfavicon');
Wordpress

Hope this helps and happy coding :)

Zobacz jeszcze

Dodanie własnego rozmiaru obrazków w WordPress

Tworzymy własny wymiar obrazków w systemie WordPress poprzez: add_image_size ( string $name, int $width, int $height, bool|array $crop = false )   Przycinanie obrazku możemy ustawić...

viewport

<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"> <meta name="viewport"...