Elementor自定义字体定期消失 求助排查问题原因
问题:Elementor自定义字体频繁消失,对应CSS文件缺失
我在Elementor中设置的自定义字体(路径:Elementor(汉堡菜单)> 站点设置>全局字体>自定义字体)每周甚至更频繁地消失。排查发现,字体消失时,对应的CSS文件(例如:/wp-content/uploads/elementor/css/post-15544.css)缺失。此时需要通过WP-Dashboard > Elementor > 工具 > 重新生成CSS & Data,或预览样式丢失的页面来恢复字体显示。
WordPress环境配置详情
== Server Environment == Operating System: Linux Software: Apache MySQL version: mariadb.org binary distribution v10.5.18 PHP Version: 7.4.33 PHP Memory Limit: 512M PHP Max Input Vars: 3000 PHP Max Post Size: 200M GD Installed: Yes ZIP Installed: Yes Write Permissions: All right Elementor Library: Connected == WordPress Environment == Version: 6.1.1 Site URL: https://www.erbrechtsinfo.at Home URL: https://www.erbrechtsinfo.at WP Multisite: No Max Upload Size: 200 MB Memory limit: 40M Max Memory limit: 512M Permalink Structure: /%category%/%postname%/ Language: de-AT Timezone: Europe/Vienna Admin Email: *** Debug Mode: Active == Active Plugins == All In One WP Security Version: 5.1.4 Author: All In One WP Security & Firewall Team *** Portale Version: 1.1.37 Author: *** Easy WP SMTP Version: 1.5.3 Author: Easy WP SMTP team Elementor Version: 3.9.2 Author: Elementor.com Elementor Pro Version: 3.9.2 Author: Elementor.com Element Pack Pro Version: 6.11.0 Author: BdThemes GDPR Cookie Compliance Version: 4.8.2 Author: Moove Agency GDPR Cookie Compliance - Premium Add-On Version: 2.0.5 Author: Moove Agency Imagify Version: 2.1 Author: Imagify – Optimize Images & Convert WebP Koko Analytics Version: 1.0.37 Author: ibericode Link Whisper Version: 2.1.5 Author: Link Whisper Loco Translate Version: 2.6.3 Author: Tim Whitlock Meta Box Version: 5.6.15 Author: MetaBox.io Meta Box Group Version: 1.3.15 Author: MetaBox.io MyListing Addons Version: 1.2.30 Author: 27collective Rating Form Version: 1.6.9 Author: Serdar Gürler Schema & Structured Data for WP & AMP Version: 1.9.108 Author: Magazine3 TablePress Version: 2.0.1 Author: Tobias Bäthge WordPress Backup & Security Plugin - BlogVault Version: 4.86 Author: Backup by BlogVault WP Rocket Version: 3.12.4 Author: WP Media Yoast SEO Version: 19.13 Author: Team Yoast == Elementor Experiments == Optimized DOM Output: Inactive Improved Asset Loading: Inactive Improved CSS Loading: Inactive Inline Font Icons: Inactive Accessibility Improvements: Inactive Additional Custom Breakpoints: Inactive Import Export Website Kit: Inactive Hide native WordPress widgets from search results: Inactive admin_menu_rearrangement: Inactive by default Flexbox Container: Inactive Default to New Theme Builder: Inactive Landing Pages: Inactive Color Sampler: Inactive Favorite Widgets: Inactive Admin Top Bar: Active by default Lazy Load Background Images: Inactive by default Save as Default: Inactive Page Transitions: Inactive Notes: Inactive Loop: Inactive Form Submissions: Active Scroll Snap: Inactive
可能的原因分析
- 缓存插件自动清理:WP Rocket的定期缓存清理规则可能将Elementor生成的CSS文件(存于
/wp-content/uploads/elementor/css/)误判为临时缓存文件并删除。检查WP Rocket的「文件排除」设置,将该目录加入不清理列表。 - 安全插件的防护机制:All In One WP Security的文件扫描或自动清理功能,可能误识别Elementor动态生成的CSS文件为可疑文件,进而删除。查看插件的「文件系统安全」或「恶意软件扫描」设置,排除Elementor的CSS目录。
- 备份插件的操作影响:BlogVault在执行备份或恢复任务时,可能覆盖或误删上传目录中的Elementor CSS文件。检查备份任务的文件包含/排除规则,确保该目录被正确包含。
- 服务器端定时清理任务:主机服务器可能有自动清理脚本(如cron任务),定期清理
wp-content/uploads/下的旧文件,导致Elementor的CSS文件被移除。联系主机服务商确认是否存在这类任务,要求保留/elementor/css/目录。 - Elementor内部生成机制问题:Elementor的CSS生成逻辑可能存在bug,当站点内容更新或插件冲突时,无法正确保留生成的文件。尝试升级Elementor到最新版本,同时排查插件冲突(禁用非必要插件测试)。
内容的提问来源于stack exchange,提问作者Bartosz Stankiewicz
相关产品推荐
相关产品推荐

