Cocoonのデフォルトサイトアイコンを変更する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//デフォルトのサイトアイコンを変更する | |
add_filter('add_default_site_icon_tag', function ($tag){ | |
$tag = '<link rel="icon" href="32x32画像のURL" sizes="32x32" />'.PHP_EOL; | |
$tag .= '<link rel="icon" href="192x192画像のURL" sizes="192x192" />'.PHP_EOL; | |
$tag .= '<link rel="apple-touch-icon" href="180x180画像のURL" />'.PHP_EOL; | |
$tag .= '<meta name="msapplication-TileImage" content="270x270画像のURL" />'.PHP_EOL; | |
return $tag; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment