-
-
Save pixeline/6554890 to your computer and use it in GitHub Desktop.
iOS Web App + Startup Images, for up to iphone 5 + ipad retina. Works as-is for Wordpress theme header.php
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="yes" name="apple-mobile-web-app-capable"> | |
<title>iOS Web App</title> | |
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/favicon.ico"> | |
<link rel="shortcut icon" href="<?php echo get_template_directory_uri(); ?>/library/images/apple-touch-icon.png"> | |
<!-- mobile meta (hooray!) --> | |
<meta name="HandheldFriendly" content="true"> | |
<meta name="MobileOptimized" content="320"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" /> | |
<!-- ENABLE WEB APP MODE --> | |
<meta name="apple-mobile-web-app-title" content="Short Name"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-status-bar-style" content="translucent black" /> | |
<!-- iPhone --> | |
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="<?php echo get_template_directory_uri(); ?>/library/images/apple-touch-icon-57x57-precomposed.png"> | |
<link rel="apple-touch-startup-image" href="<?php echo get_template_directory_uri(); ?>/library/images/apple-touch-startup-image-320x460.png" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 1)"> | |
<!-- iPhone (Retina) --> | |
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo get_template_directory_uri(); ?>/library/images/apple-touch-icon-114x114-precomposed.png"> | |
<link rel="apple-touch-startup-image" href="<?php echo get_template_directory_uri(); ?>/library/images/apple-touch-startup-image-640x920.png" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2)" > | |
<!-- iPhone 5 --> | |
<link rel="apple-touch-startup-image" href="<?php echo get_template_directory_uri(); ?>/library/images/apple-touch-startup-image-640x1096.png" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)"> | |
<!-- iPad --> | |
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo get_template_directory_uri(); ?>/library/images/apple-touch-icon-72x72-precomposed.png"> | |
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 1)" href="<?php echo get_template_directory_uri(); ?>/library/images/apple-touch-startup-image-768x1004.png"> | |
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 1)" href="<?php echo get_template_directory_uri(); ?>/library/images/apple-touch-startup-image-748x1024.png"> | |
<!-- iPad (Retina) --> | |
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo get_template_directory_uri(); ?>/library/images/apple-touch-icon-144x144-precomposed.png"> | |
<link rel="apple-touch-startup-image" href="<?php echo get_template_directory_uri(); ?>/library/images/apple-touch-startup-image-1536x2008.png" media="device-width: 768px) and (device-height: 1024px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)"> | |
<link rel="apple-touch-startup-image" href="<?php echo get_template_directory_uri(); ?>/library/images/apple-touch-startup-image-1496x2048.png" media="(device-width: 768px) and (device-height: 1024px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)"> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment