Home » WordPress Tutorials » Customization » How to Change the Color of Address Bar in Mobile Browser

How to Change the Color of Address Bar in Mobile Browser

Customization

It’s already trivial but it is still true. People are using their phones for virtually everything. From entertainment to information gathering. Thus, probably at least half of your users, are entering your website via phone. And while that certainly creates some sort of discomfort, it is a huge advantage considering the additional traffic that you will get.

There are a lot of ways to make your brand stand out. And probably, you need to take advantage of most of them.

To get there, you will have to take one step at a time.

One of the most important elements of brand building is color. And the color is not easy to master. You need to consider not only the color itself but also its hue and saturation. And once you get that right, you have to put the effort in order not to overdo it.

You can’t paint everything related to your brand with its colors.

But the address bar of your WordPress website on a mobile browser is one thing that you can easily and confidently paint according to your brand’s guidelines.

Take a look at huge websites like Facebook, BBC, and The Guardian, all of these and a lot more websites, colored their mobile browser address bars.

 

How to Color The Address Bar of Your WordPress Website on a Mobile Browser

With the new version of WordPress which was released in November 2017, the possibility to directly change the code of the themes was highly limited. Not that it is not possible, you just have to do it via the Admin Panel, and not through the WordPress Dashboard.

If you try to edit the code, most probably you’ll face an error, which will recommend you to use an FTP by which to download the file you want to edit, edit it locally on your computer, and then re-uploading it. This is a lot of unnecessary work.

With the admin panel, you’ll be presented with our web hosting services, you won’t have to do all of this. You can just find the file you want to edit, double-click it and add or remove whatever you want.

Now that we got this out of the way, let’s focus on coloring your mobile browser’s address bar.

It is a fairly easy task. All you need to do is to copy the following code:

<meta name=”theme-color” content=”#327eb9” />

And paste it into your header.php file.

You need to place the code just above the closing </head> tag.

NB! #327eb9 is the HEX value of the AwardSpace’s blue color.

You’ll probably want to use your brand’s color or the color of your menu, as the menu will be right below the address bar.

In any case, if you don’t know the HEX value of your brand color or any element that you want to match with the color of the mobile browser’s address bar, you can use color pick extensions.

Like ColorZilla, for example. 

Was this post helpful?

i

Relevant tags:

Create your WordPress website today!

Connect

Editor’s picks:

Gutenberg Tutorial: How to Move Blocks in WordPress

What you need to know: The WordPress Block Editor allows you to move blocks up and down the document structure in order to rearrange the content contained within those blocks. The most popular way of moving blocks is by dragging a block from one position and dropping...

Gutenberg Tutorial: Deleting a Block in WordPress

What you need to know: You can delete a block in WordPress by selecting it and pressing the Delete key on your keyboard. Alternatively, you can press the three-dot button in the Contextual Toolbar to access the Remove block option. Lastly, it is also possible to...

Gutenberg Tutorial: Using Block Patterns in WordPress

What you need to know: A block pattern in WordPress is a group of two or more regular WordPress blocks. These blocks come in a sensible layout that you wouldn’t need to modify in most cases. Instead, you just need to add your own content to the block pattern. You can...

Gutenberg Tutorial: Using WordPress Reusable Blocks

What you need to know: Gutenberg features reusable blocks that allow you to quickly insert the same content with one click. You can mark any block or block pattern as reusable. You can find your reusable block collection in the WordPress Block Library. Have you ever...



Create your WordPress website today!


Start now