Hi,
Just wondering if there is a code snippet to add to the CSS or php files that will allow me to change the browser address bar colour when viewed in mobile view?
Thanks
John
Ok.. figured it out I think.
I’ve generated this code and placed it in the functions.php. Seems to work well.. at least on my Android device.
<?php
function address_mobile_address_bar() {
$color = “#008509″;
//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’, ‘address_mobile_address_bar’ );
Hi,
Thanks for sharing your solution, unless there is anything else we can help with on this issue, shall we close this then?
Best regards,
Mike
Hi Mike,
Yes please close. all good and thank you for the reply.
Cheers
John