Add color to mobile address bar


So I added this code to the fnctions.php in the child them, and checked it adds in the headers, and it does, yet the color is still white:

add_action('wp_head', 'your_function_name');
function your_function_name(){
<meta name="theme-color" content="#38a5df">

I tried other code from the forum and none seam to work. There are a couple of plugins that do work, but i dont know if I can trust them?

Anyway of making this work by adding code to the functions.php?


Hi Gary,

Unfortunately, not all browser’s can support that feature, please see the notes here.


But when I use a plugin to do it, it works on the mobile browser im using…its only when I add the code myself it doesnt work.

Hello @logoglo,

It is best that you use a 3rd party instead. Be also advised that custom coding is beyond the scope of our support.

Thank you for your understanding.

No worries, thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.