Skip to content

Instantly share code, notes, and snippets.

@schalkburger
Last active January 16, 2020 01:33
Show Gist options
  • Select an option

  • Save schalkburger/46862231f41702018e6f46e65b360297 to your computer and use it in GitHub Desktop.

Select an option

Save schalkburger/46862231f41702018e6f46e65b360297 to your computer and use it in GitHub Desktop.

Revisions

  1. schalkburger revised this gist Jun 6, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions sage_favicons.php
    Original file line number Diff line number Diff line change
    @@ -19,8 +19,8 @@ function sage_favicons() {
    echo '<link rel="icon" type="image/png" href="'. get_template_directory_uri() .'/dist/images/favicon-16x16.png" sizes="16x16">';echo "\n";
    echo '<link rel="mask-icon" href="'. get_template_directory_uri() .'/dist/images/safari-pinned-tab.svg" color="#5bbad5">';echo "\n";
    echo '<link rel="shortcut icon" href="'. get_template_directory_uri() .'/dist/images/favicon.ico">';echo "\n";
    echo '<meta name="apple-mobile-web-app-title" content="Kurtosys">';echo "\n";
    echo '<meta name="application-name" content="Kurtosys">';echo "\n";
    echo '<meta name="apple-mobile-web-app-title" content="">';echo "\n";
    echo '<meta name="application-name" content="">';echo "\n";
    echo '<meta name="msapplication-TileColor" content="#603cba">';echo "\n";
    echo '<meta name="msapplication-TileImage" content="'. get_template_directory_uri() .'/dist/images/mstile-144x144.png">';echo "\n";
    echo '<meta name="msapplication-config" content="'. get_template_directory_uri() .'/dist/images/browserconfig.xml">';echo "\n";
  2. schalkburger created this gist Jul 3, 2016.
    29 changes: 29 additions & 0 deletions sage_favicons.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    /**
    * Load favicons
    * Place icons in the theme images directory. Want more? http://realfavicongenerator.net/
    */
    function sage_favicons() {
    echo '<link rel="apple-touch-icon" sizes="57x57" href="'. get_template_directory_uri() .'/dist/images/apple-touch-icon-57x57.png">';echo "\n";
    echo '<link rel="apple-touch-icon" sizes="60x60" href="'. get_template_directory_uri() .'/dist/images/apple-touch-icon-60x60.png">';echo "\n";
    echo '<link rel="apple-touch-icon" sizes="72x72" href="'. get_template_directory_uri() .'/dist/images/apple-touch-icon-72x72.png">';echo "\n";
    echo '<link rel="apple-touch-icon" sizes="76x76" href="'. get_template_directory_uri() .'/dist/images/apple-touch-icon-76x76.png">';echo "\n";
    echo '<link rel="apple-touch-icon" sizes="114x114" href="'. get_template_directory_uri() .'/dist/images/apple-touch-icon-114x114.png">';echo "\n";
    echo '<link rel="apple-touch-icon" sizes="120x120" href="'. get_template_directory_uri() .'/dist/images/apple-touch-icon-120x120.png">';echo "\n";
    echo '<link rel="apple-touch-icon" sizes="144x144" href="'. get_template_directory_uri() .'/dist/images/apple-touch-icon-144x144.png">';echo "\n";
    echo '<link rel="apple-touch-icon" sizes="152x152" href="'. get_template_directory_uri() .'/dist/images/apple-touch-icon-152x152.png">';echo "\n";
    echo '<link rel="apple-touch-icon" sizes="180x180" href="'. get_template_directory_uri() .'/dist/images/apple-touch-icon-180x180.png">';echo "\n";
    echo '<link rel="icon" type="image/png" href="'. get_template_directory_uri() .'/dist/images/favicon-32x32.png" sizes="32x32">';echo "\n";
    echo '<link rel="icon" type="image/png" href="'. get_template_directory_uri() .'/dist/images/favicon-194x194.png" sizes="194x194">';echo "\n";
    echo '<link rel="icon" type="image/png" href="'. get_template_directory_uri() .'/dist/images/favicon-96x96.png" sizes="96x96">';echo "\n";
    echo '<link rel="icon" type="image/png" href="'. get_template_directory_uri() .'/dist/images/android-chrome-192x192.png" sizes="192x192">';echo "\n";
    echo '<link rel="icon" type="image/png" href="'. get_template_directory_uri() .'/dist/images/favicon-16x16.png" sizes="16x16">';echo "\n";
    echo '<link rel="mask-icon" href="'. get_template_directory_uri() .'/dist/images/safari-pinned-tab.svg" color="#5bbad5">';echo "\n";
    echo '<link rel="shortcut icon" href="'. get_template_directory_uri() .'/dist/images/favicon.ico">';echo "\n";
    echo '<meta name="apple-mobile-web-app-title" content="Kurtosys">';echo "\n";
    echo '<meta name="application-name" content="Kurtosys">';echo "\n";
    echo '<meta name="msapplication-TileColor" content="#603cba">';echo "\n";
    echo '<meta name="msapplication-TileImage" content="'. get_template_directory_uri() .'/dist/images/mstile-144x144.png">';echo "\n";
    echo '<meta name="msapplication-config" content="'. get_template_directory_uri() .'/dist/images/browserconfig.xml">';echo "\n";
    echo '<meta name="theme-color" content="#ecf0f1">';echo "\n";
    }
    add_action('wp_head', __NAMESPACE__ . '\\sage_favicons');