How To Match The Color Of Mobile Browser Address Bar

Change Address Bar Color Of Mobile Browser & Match With Website Header Color.

It is possible to match any website header color with mobile browser address bar color to make it feel like native app.


Not just wordpress website but it can be done to any website. 


How To Match Header Color with Address Bar Color ?

We all know website format is like as below.


<html>

<head>

<title>Hello</title>

</head>

<body>

<h1>Hello</h1>

</body>

</html>



So to match header color with mobile browser address bar, we need to add a line of code before </head> tag close.


This is the line of code: with the color code in the content attribute.


<meta name="theme-color" content="#ff6600">


To match website header color with mobile browser address bar you need to get the color code of your website header and replace the in the above line of code.


Lets say my website header color is black Color Code: #000000


I will put black color code in the content attribute just like below.


<meta name="theme-color" content="#000000">


So the final out put of the website will be as below


<html>

<head>

<meta name="theme-color" content="#000000">

<title>Hello</title>

</head>


<body>

<h1>Hello</h1>

</body>

</html>


Please know website header color will only match with browser address bar color in mobile browser only, if you have added that line of code properly.


Comments :

Add your valuable comments, so others can read.

Leave A Comment :