[WordPress] 外掛分享: Page Specific Stylesheets

前言介紹

  • 這款 WordPress 外掛「Page Specific Stylesheets」是 2014-06-10 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 1000 個安裝啟用數。
  • 上一次更新是 2015-02-07,距離現在已有 3739 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.5 以上版本才可以安裝。
  • 有 9 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

tylershaw |

外掛標籤

css | page | post | specific | stylesheet |

內容簡介

這個外掛可以在網頁和文章中添加方便專用的 CSS 樣式表。它可以清除不需要的樣式,保持 style.css 檔案的整潔,並隨時根據需求更新。

為什麼要使用它?

如果你的 style.css 檔案過於臃腫,外掛可以顯示每個頁面或文章的 CSS 樣式表,讓它們與內容一起更新、刪除,並減少未使用的樣式佔用。

效能如何?

該外掛的 Overhead 不應該成為問題。管理員代碼僅在管理面板中執行,前端代碼在前端執行。如果你的網站有許多頁面特定的樣式表可以轉移到外掛中,就可以通過減少 style.css 檔案的下載大小來提高效能。

路線圖

隨著 WordPress 的演進,這個外掛將持續維護。我們暫時沒有計劃添加大型功能,但我們非常樂意接受意見反饋!

如果你有任何特別的功能需求,或者希望查看或貢獻代碼,請訪問GitHub,我們的項目已經上傳到該網站了。

額外的外掛選項。

如果你有新的功能建議,歡迎提出。

備註

預設情況下,樣式數據和選項在卸載時不會被刪除。你必須在插件設置頁面上勾選選項才能啟用此功能。

原文外掛簡介

What’s It Do?
This plugin adds a box to your pages and posts allowing for page-specific or post-specific CSS stylesheets.
Why Use It?
After developing quite a few WordPress websites, it seems to me that the style.css file gets bloated. If you add a style used on only one page, and then later that page is deleted, you’re visitors now have to download those styles that aren’t even used. It’s wasteful, but maintaining a clean style.css file requires an active effort. This plugin solves that by attaching the these styles to the page or post, allowing them to be updated just like the content is and deleted with the page.
It keeps your style.css file clean and reduces unused style clutter.
What About Efficiency?
There shouldn’t be an issue with overhead from the plugin. Admin code is only executed in the admin panel and front end code is executed on the front end. If you’re website has a large amount of page-specific styles within it that can be migrated into the plugin, it can boost performance by reducing the download size of your style.css file.
Roadmap
This plugin will receive ongoing maintenance as WordPress evolves. No major features are planned, but I am entirely open to feature requests!
Feel free to suggest any feature you desire, or check out the code or contribute on GitHub, where the project is hosted.

Additional plugin options.

If you have a feature idea, suggest it.
Notes

Style data and options are not deleted by default on uninstall. You must check the options on the plugin settings page to enable the deletion of this data.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Page Specific Stylesheets」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.0.1 | 1.0.2 | 1.1.0 | 1.1.1 | 1.1.2 | 1.2.0 | 1.2.1 | 1.2.2 | trunk |

延伸相關外掛(你可能也想知道)

  • WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager 》插入標頭和頁腳 + 完整的 WordPress 代碼片段外掛, WPCode (前稱为 WPBeginner 的 "插入標頭和頁腳")是使用率超过 100 万个网站的 WordPress 代码片段外掛中...。
  • Code Snippets 》Code Snippets 是在您的網站上運行程式碼片段的簡單,清潔和簡單的方法。它消除了將自定義片段添加到您的佈景主題的 functions.php 檔案的需求。, 現在提供 C...。
  • Widget CSS Classes 》Widget CSS Classes 可以讓您給 WordPress Widget 添加自定義的 class 和 id, 請注意,此外掛並不支援輸入自定義的 CSS。您需要修改主題的 style.css,或加入...。
  • Simple Custom CSS Plugin 》無需麻煩地將自訂 CSS 新增到 WordPress 網站中。, 這是一個易於使用的 WordPress 外掛,可以添加自訂 CSS 樣式以覆寫外掛和佈景主題的預設樣式。該外掛旨在...。
  • Simple CSS 》需要在你的網站中添加自定義 CSS 嗎?Simple CSS 提供一個很棒的管理編輯器和 Customizer 中的即時預覽編輯器,讓你能夠輕鬆添加 CSS。, 想讓你的 CSS 僅應用...。
  • WP Add Custom CSS 》WP Add Custom CSS 外掛允許您在整個網站及個別文章、頁面和自訂文章類型(例如 Woocommerce 產品)中添加自訂的 CSS。, 對整個網站應用的 CSS 樣式將覆蓋您...。
  • Visual CSS Style Editor 》Style your WordPress site visually. Discover the most popular front-end design plugin! Try live demo., , Visual CSS Editor, The plugin allows you t...。
  • WP-SCSS 》此外掛使用 ScssPhp,在 WordPress 安裝中編譯 .scss 檔案。包含設定頁面,可配置目錄、錯誤報告、編譯選項和自動佇列。, 此外掛僅在更改 .scss 檔案時進行編...。
  • Clear Cache for Me 》Clear Cache For Me 是一個 WordPress 外掛,適用於 W3 Total Cache 和 WP Super Cache,因為它們不知道 widget 何時更新,且在更新 widget 和 menu 時都不會...。
  • Scripts n Styles 》這個外掛讓管理員用戶能夠將自訂的 CSS 和 JavaScript 直接添加到個別文章、頁面或任何註冊的自訂文章類型中,也可以將類別添加到 body 標籤和文章容器中。還...。
  • Forget About Shortcode Buttons 》相容於 WordPress 傳統編輯器,Gutenberg 整合即將推出🙂, 歡迎提出功能需求/建議!, 即忘短碼(FASC)按鈕是在所見即所得編輯器中及網站佈景主題中加入 CSS 按...。
  • Code Embed 》注意: WordPress 5.0 及以上版本的使用者請查看常見問題以了解如何在區塊編輯器中使用此外掛。, Code Embed 外掛允許您在文章中嵌入程式碼(JavaScript 和 H...。
  • Raw HTML 》is capability is only granted to administrators. If you’re not an admin, you will need to ask them to add it to your role., Raw HTML is not r...。
  • Microthemer Lite – Visual Editor to Customize CSS 》Microthemer是一個輕量級且功能強大的視覺編輯器,可以自訂網站的CSS樣式,從Google字體到響應式佈局,它適用於程式開發人員和非程式開發人員,並與Elementor...。
  • Core Framework 》總結:Core Framework是一個簡單易用、樂趣滿滿的WordPress外掛,如同你的CSS瑞士軍刀,幫助你輕鬆打造完美網站。, , 問題與答案:, - Core Framework是什麼...。

文章
Filter
Mastodon