Linux 软件免费装
Banner图

PFont

开发者 wordpress-parsi
更新时间 2026年10月12日 07:29
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

elementor persian fonts custom fonts google fonts

下载

1.5.0

详情介绍:

PFont keeps one central font library and adds those fonts to the native font dropdowns of the editors and builders you already use. It only uses documented, verified hooks and never edits core, theme or builder files. What it does Integrations Themes without a public font hook are reported as unsupported instead of being hacked. Divi and WoodMart are not integrated: both already include their own custom font upload, so add the font there (Divi: the Upload button inside any font menu; WoodMart: Theme Settings → Typography → Custom fonts). Privacy Fonts loaded from a CDN send visitors' IP addresses to that CDN. A German court (LG München I, 20 January 2022, 3 O 17493/20) awarded damages for embedding Google Fonts without consent. Use "Host on this server" (or uploaded files) to avoid third-party requests. This is not legal advice.

安装:

  1. Upload the plugin ZIP under Plugins → Add New → Upload Plugin, then activate it.
  2. Open Settings → PFont.
  3. Add one of the available fonts on the Library screen, or upload your own under "Add new font".
  4. Choose where each font should appear in the library table, then pick the font in your editor or builder.

升级注意事项:

1.5.0 The custom stylesheet URL field is gone and all stored data moves to prefixed option names (done automatically). Fonts chosen in the Block Editor must be picked again. Old ucf_* hook names no longer fire. 1.4.0 Passes Plugin Check. If you hook into the plugin from your own code, rename ucf_ hooks to pfont_ (the old names still work in this version). 1.3.0 Renamed to PFont (nothing to migrate). The interface now follows your WordPress admin colour scheme. 1.2.0 Fixes missing fonts in the Block Editor and the crash on Appearance → Fonts. Adds an admin area font. Divi and WoodMart support was removed; upload fonts in those products directly. 1.1.0 New admin interface with a type tester for every font. No settings change.

常见问题:

Why is a font I added from Google not in Elementor's "PFont" group?

Elementor already ships many Google Fonts (including Vazirmatn, Lalezar and Markazi Text). A CDN copy would only duplicate it, so the plugin leaves Elementor's own entry in place and Elementor loads it. If you host the font on your server or upload it, the plugin takes over that entry so Elementor stops requesting it from Google.

Does it slow my site down?

No global CSS is added. Each page gets at most one small inline style block with the @font-face rules it needs, plus a CDN stylesheet only if a CDN font is used on that page.

Which file format should I upload?

WOFF2. It is the smallest format and supported by all current browsers.

Can I change the font of the WordPress admin area?

Yes. Under Settings → WordPress admin, choose any enabled font from your library. It is applied to the dashboard screens and the admin toolbar. Icons, code fields and the content you edit keep their own fonts. The login page, the Customizer and the toolbar on the front end are not changed. If the font loads from a CDN it is requested on every admin screen, so hosting it on your server is the better choice.

Why is there no Divi or WoodMart integration?

Both already include a custom font upload of their own, so a second layer is not needed. Upload the font in Divi (the Upload button inside any font menu) or in WoodMart (Theme Settings → Typography → Custom fonts). Version 1.2.0 removed the earlier Divi and WoodMart support. Fonts and settings you saved are kept; Media Library copies made by the old WoodMart helper are not deleted, so WoodMart keeps working.

What happens to my fonts when I delete the plugin?

Nothing, unless you enabled the uninstall options under Settings. Font files and settings are kept by default.

Can I add fonts from code?

Yes. Use the pfont_registered_fonts filter to add font records, pfont_cdn_presets to change the preset list and pfont_integrations to add or replace an integration adapter. Every hook is documented in the source with a docblock.

更新日志:

1.5.0 1.4.0 1.3.1 1.3.0 1.2.0 1.1.0 1.0.0