內容簡介
這個外掛只適用於使用 Flywheel Hosting 和 Flywheel CDN 附加元件的用戶。
問題:如果您使用一個生成動態 CSS 的外掛 (例如頁面建立器),Flywheel CDN 附加元件將無法更新在動態生成的 CSS 中引用的任何 URL。例如,背景圖片將使用您的預設網域路徑而不是 CDN 網域路徑。
解決方案:這個外掛會重新編寫由 WordPress 的 wp_get_attachment_image_src 函式載入的 URL,以便強制使用 CDN 路徑。
外掛標籤
開發者團隊
② 後台搜尋「Dynamic CSS URLs for Flywheel CDN」→ 直接安裝(推薦)
原文外掛簡介
THIS PLUGIN WILL ONLY WORK IF YOU ARE USING FLYWHEEL HOSTING AND THE FLYWHEEL CDN ADD-ON.
The problem: If you use a plugin that generates dynamic CSS (for example a page builder), the Flywheel CDN add-on will not update any URLs referenced in the dynamically generated CSS. For example, a background image would use your default domain path rather than the CDN domain path.
The solution: This plugin re-writes URLs that are loaded by the WordPress wp_get_attachment_image_src function so that they are forced to use the CDN path instead.
