wordpress移动_如何在移动浏览器中更改地址栏的颜色以匹配您的WordPress网站

wordpress移动

Have you noticed that many popular websites like BBC and Facebook use their own brand colors for the address bar in mobile browser. Recently, one of our users asked us if we could write about how to change the color of address bar in mobile browser to match their WordPress theme? In this article, we will show you how to change the color of address bar in mobile browser to match your WordPress site.

您是否注意到许多流行的网站(例如BBC和Facebook)在移动浏览器的地址栏中使用了自己的品牌颜色。 最近,我们的一位用户问我们是否可以撰写有关如何在移动浏览器中更改地址栏颜色以匹配其WordPress主题的信息? 在本文中,我们将向您展示如何在移动浏览器中更改地址栏的颜色以匹配您的WordPress网站。

Address bar color in mobile browser for WordPress site
为什么要在移动浏览器中匹配地址栏颜色? (Why Match Address Bar Color in Mobile Browser?)

Most popular WordPress themes are mobile responsive. This makes your site looks great on mobile devices. However, it still looks and feels like a website.

最受欢迎的WordPress主题是移动响应的。 这使您的网站在移动设备上看起来很棒。 但是,它仍然看起来和感觉像一个网站。

Matching the color of address bar to your WordPress site, gives it a native app-like feel. This improves user experience, which ultimately boosts sales and conversions.

将地址栏的颜色与您的WordPress网站相匹配,使其具有本机应用程序的感觉。 这改善了用户体验,最终促进了销售和转化。

Color address bars in mobile browser on Android

However, please note that currently it only works for Google Chrome web browser on Android devices using Lollipop or newer versions.

但是,请注意,当前它仅适用于使用Lollipop或更高版本的Android设备上的Google Chrome浏览器。

将移动浏览器上的地址栏颜色匹配到您的WordPress主题 (Match Address Bar Color on Mobile Browser to Your WordPress Theme)

Simply add this code in your theme or child theme‘s header.php file just before the closing </head> tag.

只需在结束</head>标记之前,将此代码添加到您的主题或子主题header.php文件中即可。

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

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

This line is a HTML meta tag used by Google Chrome on Android to change color of address bar in mobile browser. The content field has the hex code for the color you want to use as theme color.

这行是HTML标记,由Android上的Google Chrome浏览器用来更改移动浏览器中地址栏的颜色。 内容字段具有您要用作主题颜色的颜色的十六进制代码。

Not sure how to get the hex color code?

不确定如何获取十六进制颜色代码?

You can get the HEX value of a color using any image editing software like Adobe Photoshop, Gimp, Paint, etc.

您可以使用任何图像编辑软件(例如Adobe Photoshop,Gimp,Paint等)获取颜色的十六进制值。

Color picker in Adobe Photoshop

You can also pick a color using online HTML color picker tools.

您也可以使用在线HTML颜色选择器工具选择颜色

If you want to pick a color from a web page, then you can use a browser extension like ColorZilla.

如果要从网页中选择颜色,则可以使用诸如ColorZilla的浏览器扩展。

That’s all, we hope this article helped you learn how to change the color of address bar in mobile browser to match your WordPress site. You may also want to see our CSS Hero review, it is the easiest way to customize your WordPress theme.

就这样,我们希望本文能帮助您学习如何在移动浏览器中更改地址栏的颜色以匹配您的WordPress网站。 您可能还希望查看我们的CSS Hero评论 ,这是自定义WordPress主题的最简单方法。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-change-the-color-of-address-bar-in-mobile-browser-to-match-your-wordpress-site/

wordpress移动

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值