內容簡介
這個外掛可以在網頁和文章中添加方便專用的 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.
