Linux 软件免费装
Banner图

Custom Favicon

开发者 hchouhan
themeist
更新时间 2025年5月30日 21:25
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: GPL-3.0
版权网址: 版权信息

标签

icon favicon dark mode site icon svg icon

下载

1.0.1 1.0.2 1.0.3 1.0.0 1.1.0

详情介绍:

Custom Favicon lets you upload and manage favicons for your WordPress website, admin area, and login screen using the native media uploader. Unlike the built-in Site Icon feature, this plugin gives you full control — including support for separate frontend and backend icons, Apple touch icons, dark mode icons, and SVG format. Features include: Need help? Ask in the Support Forum on WordPress.org

安装:

  1. Upload the /custom-favicon/ folder to /wp-content/plugins/
  2. Activate the plugin through the Plugins menu in WordPress
  3. Go to Settings → Custom Favicon and upload your icons

常见问题:

Will this override the default WordPress Site Icon?

Yes. When enabled, the plugin replaces WordPress’s default favicon and Apple icon output.

Can I use SVG files?

Yes. Modern browsers support SVG favicons. If your theme doesn’t allow SVG uploads, you may need to enable that manually.

Does this support light/dark mode favicons?

Yes. You can upload separate favicons for light and dark appearance modes using the prefers-color-scheme media query.

Can editors access the settings page?

By default, only Administrators (with the manage_options capability) can access the settings page. Developers can override this using the custom_favicon_capability filter. For example, to allow Editors: ```php add_filter( 'custom_favicon_capability', function () { return 'edit_theme_options'; } );

Where can I get help?

You can ask your question in the WordPress.org Support Forum

Changelog

1.1.0 - (30 May 2025)

  • Completely refactored plugin codebase to follow WordPress coding standards (PHPCS)
  • Added support for dark mode favicons using prefers-color-scheme
  • Added support for SVG icons
  • Added apple-touch-icon and msapplication-TileImage meta output
  • Added option to disable WordPress’s default Site Icon output
  • Improved admin settings UI and image upload experience
  • Added automatic migration of old plugin settings
  • Improved plugin security and sanitization
  • Removed legacy Apple icon style option
  • Added developer filter custom_favicon_capability to allow overriding who can access the settings page

1.0.3

  • Updated readme

1.0.2

  • Fixed incorrect JS path
  • Upload issues resolved

1.0.1

  • Replaced WP_PLUGIN_URL with plugins_url()

1.0.0

  • Initial release ```