Last active
April 23, 2017 23:45
-
-
Save Volnus/045686dc02129a41b463d0621ff9e00e to your computer and use it in GitHub Desktop.
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
function mobile_theme_color() { | |
$color = "#000"; | |
//this is for Chrome, Firefox OS, Opera and Vivaldi | |
echo '<meta name="theme-color" content="'.$color.'">'; | |
//Windows Phone ** | |
echo '<meta name="msapplication-navbutton-color" content="'.$color.'">'; | |
// iOS Safari | |
echo '<meta name="apple-mobile-web-app-capable" content="yes">'; | |
echo '<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">'; | |
} | |
add_action( 'wp_head', 'mobile_theme_color' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment