| 开发者 | codifigata |
|---|---|
| 更新时间 | 2026年10月28日 21:34 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
cdfg_flc_logo_max_width (int $max_width)
Filters the maximum width (in px) applied to the logo on the login page. Default: 300. The height is always scaled proportionally. Return 0 to disable resizing.
Example:
add_filter( 'cdfg_flc_logo_max_width', function( $max_width ) { return 200; } );
/wp-content/plugins/, or install it from the WordPress "Plugins" screen.Yes. Version 2.0.0 is a complete rewrite, and your previous choices (including any customization you had switched off) are migrated automatically the first time you open the WordPress admin after the update. The old settings are then removed from the database.
For best results, use a logo with a transparent background, such as a PNG. JPGs are supported too, but since they always have a background color, this could clash with the login screen's UI.
The maximum width is 300px. Wider logos are scaled down automatically, keeping their proportions. Developers can change this limit with the cdfg_flc_logo_max_width filter.
Make sure a site logo is set under Appearance → Customize → Site Identity (or Appearance → Editor → Site Identity on block themes), then log out and reload the login page — a cached page can also be the cause. This is a different setting from your theme's own logo option, if it has one. On many themes (especially multipurpose/page-builder themes) the logo shown in the site header comes from a theme-specific settings panel, not from Site Identity, so Site Identity's Logo field can be empty even though your site already displays a logo. You need to set it explicitly — you can upload the same image file you already use as your theme's logo.
No. This plugin intentionally has no free-form fields: it only automates the connection between customizations already available in WordPress (Customizer logo, Site Address, Site Title) and the login screen, without adding new settings to keep track of.
Appearance → Login Screen. You can also reach it from the "Settings" link on the Plugins screen.
Yes. It is totally free, with no ads, no upsells and no tracking.
On uninstall (not on simple deactivation), the plugin removes its settings and the per-user "activation notice dismissed" flag, including any leftover data from version 1.x. No database tables are created.
cdfg_flc_logo_max_width filter to change the maximum logo width.