Favicon

GitHub

Mainly just keeps header.php cleaner.

  • Outputs a string of favicons that should cover most use-cases.

  • Includes icons for iOS & Android, as well as MS Tiles and a handful of generic icons.

  • Icons can be generated here: https://realfavicongenerator.net/.

  • Make sure to adjust the output string to match the icons that you generate.

  • Also adjust: ./app/site.webmanifest to match your new icons.

/**
* Add to header.php
*
* @param $title string The title for MS Application Tiles
* @param $color string The background color for MS Application Tiles
*/
<?= (new WPDD\Favicon\Display())->favicons('WP DryDock', '#fff'); ?>