內容簡介
WordPress 核心提供定制 CSS 功能,它是特定於當前佈景主題的;您可以自由切換主題,每個主題的額外 CSS 仍然保持不變。有時候,您需要一些 CSS 永久地適用於當前佈景主題之外。該外掛添加了一個外掛 CSS 選項,用於跨佈景主題全球持久的 CSS。
使用自訂器(Customizer),您的 CSS 立即實時預覽,可以在發佈更改之前直接查看網站的外觀。該外掛 CSS 選項被存儲為一個 option。在 WordPress 4.7 之前(引入核心的額外 CSS),特定於主題的 CSS 被存儲為一個 theme_mod,在 4.7 及更新版本中,它已被遷移到核心 CSS 功能中(這是特定於主題的)。
外掛標籤
開發者團隊
原文外掛簡介
WordPress core provides custom CSS functionality in the customizer that’s specific to the current theme; you can switch themes freely with each theme’s additional CSS remaining in place. Sometimes, you need some CSS to apply regardless of the current theme persistently. This plugin adds a plugin CSS option for CSS that’s global and persists across theme changes.
With the Customizer, your CSS is instantly live-previewed, offering the ability to see exactly how your site will look before you publish your changes. The plugin CSS option is stored as an option. Prior to WordPress 4.7 (which introduced additional CSS in core), theme-specific CSS was stored as a theme_mod, in 4.7 and newer this is migrated to the core CSS functionality (which is theme-specific).
