
內容簡介
Post/Page Specific Custom Code 外掛允許用戶為單獨的文章、頁面或 WooCommerce 產品添加自訂 CSS。使用者可以在編輯畫面中專用的框內撰寫 CSS,並選擇其加載方式。
【主要功能】
• 為單篇文章或頁面添加自訂 CSS
• 支援 WooCommerce 產品的 CSS 設定
• 可選擇在單一視圖或檔案樣式視圖加載
• 內建語法高亮的程式碼編輯器
• 支援 WordPress 5.0 及以上版本
外掛標籤
開發者團隊
② 後台搜尋「Post/Page Specific Custom Code」→ 直接安裝(推薦)
原文外掛簡介
Post/Page Specific Custom Code lets you add custom CSS to individual posts, pages, or WooCommerce products. A dedicated box on the edit screen is where you write your CSS. You can also choose whether it should load only on the single view or on archive-style views as well.
The meta box appears below the content editor for posts, pages, and products. Enter your CSS there and decide whether it applies only on the single view or also on archive-style views (blog/category listings, the WooCommerce shop and product categories/tags). Product CSS also loads on a best-effort basis for products rendered through standard WooCommerce loop templates outside the main query (for example the [products] shortcode). CSS discovered only after the page head may be printed in the footer. Custom product markup that skips WooCommerce templates needs a small integration hook. Products injected only via AJAX or infinite scroll are not covered.
CSS fields use a code editor with syntax highlighting by default. You can turn highlighting off with a filter if you prefer a plain textarea (for example on slower machines).
Requirements
This plugin requires WordPress 5.0 or later (please keep WordPress up to date) and PHP 7.4 or later on your server.
