Linux 软件免费装
Banner图

Browser Theme Color – Address Bar Color & Dark Mode

开发者 Milmor
更新时间 2026年10月5日 18:00
捐献地址: 去捐款
PHP版本: 7.0 及以上
WordPress版本: 7.2
版权: GPLv2 or later
版权网址: 版权信息

标签

mobile android address bar dark mode theme-color

下载

1.2.3 1.5 1.3 1.4.1 2.0.1

详情介绍:

Discover a powerful solution for enhancing your website's user experience across multiple platforms with our simple, lightweight, and effective plugin that adds the "theme-color" meta tag. Supported by Chrome, Edge and Samsung Internet on Android and by Safari up to iOS 18, our plugin follows the web standard to ensure a seamless user experience. In addition to its seamless compatibility, our plugin is fully customizable, allowing you to style it to match your brand's unique identity. With the option to choose from a variety of colors, you can easily tailor the "theme-color" meta tag to perfectly complement your website's design and layout. When you install the plugin for the first time, the color is automatically set to #23282D, which is the standard WordPress color. From there, you can easily customize the tag to match your brand, ensuring a fully immersive user experience that keeps visitors coming back for more. Features Development happens on GitHub: milesimarco/browser-theme-color. Don't settle for a subpar user experience on mobile devices. Elevate your website's design and functionality with our "theme-color" meta tag plugin today, for free!

安装:

This section describes how to install the plugin and get it working.
  1. Upload browser-theme-color directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Go to Settings -> Browser Theme Color
  4. Choose the color you want and style it to match your style!

屏幕截图:

  • Choose any color with the WordPress color picker.

常见问题:

How to set the color?

You can set the color in the plugin settings screen (Settings -> Browser Theme Color), or via the "Settings" link in the plugins list.

Can I use a different color in dark mode?

Yes. Set the "Dark Mode Color" field: the plugin will output two theme-color tags with media="(prefers-color-scheme: light)" and media="(prefers-color-scheme: dark)". Leave it empty to use a single color.

Does it work on iPhone?

Up to iOS 18, Safari uses the "theme-color" tag. Starting with iOS 26, Safari ignores it and tints its toolbars using the background color of your page or of fixed elements at the top and bottom edges (such as a fixed header). Version 2.0 adds two experimental options, "Tint the top bar" and "Tint the bottom bar" (Settings -> Browser Theme Color), disabled by default. They add a thin strip in your theme color at the top and/or bottom edge of the page, only on iOS Safari, so Safari can pick up the color. Apple does not document this behavior and may change it: if your theme has a fixed header Safari may use its color instead, so test it on a real iPhone. Tried it on an iPhone? Please share how it behaves (iOS version, theme, and whether the bars changed color) in the support forum: your feedback will help improve this feature.

Can I change the color programmatically?

Yes, use the filters: add_filter( 'browser_theme_color', function( $color ) { return is_front_page() ? '#ff6600' : $color; } ); add_filter( 'browser_theme_color_dark', '__return_empty_string' );

更新日志:

2.0.1 2026-10-05 1.5 2025-05-26 1.4.1 2024-05-24 1.3 20230217 1.2.3 20220621 1.2.2 20201002 1.2.1 20200430 1.2 05.09.2017 1.1 10.01.2017 1.0 9.06.2016