
內容簡介
在每個文章的編輯介面上直接撰寫 CSS 和 JavaScript 程式碼。Meta boxes 提供了一種快速且簡單的方式,讓您為每個文章輸入自訂程式碼。如果文章有自訂程式碼,它將載入到您的前端佈景主題頁首中。您還可以使用 custom_css 或 custom_js 短代碼直接在文章中顯示自訂程式碼。
特點
使用簡單的 Meta boxes 輸入自訂 CSS 和 JavaScript
僅載入特定文章或頁面的自訂程式碼。
自訂每個頁面或文章的外觀或功能。
將 CSS 和 JavaScript 程式碼存儲在 postmeta 表中,並使用隱藏的 meta_keys 進行存儲。
所有輸入的 CSS 都將在此文章中生效。
所有輸入的 JavaScript 都將在此文章中生效。
使用 Short code 直接在文章中顯示自訂程式碼。
以下選項可用:
在編輯頁面上顯示自訂 CSS Meta box 或關閉它。
在編輯頁面上顯示自訂 JavaScript Meta box 或關閉它。
設置允許使用自訂 meta boxes 的最低用戶級別。
插件整合
可自動適用於 Prettify GC Syntax Highlighter 插件。適用於前端語法突出顯示。2 個不同的 js 和 css 加載 42k,在所有頁面上加載,不考慮文章是否有程式碼。
可自動適用於 Google Syntax Highlighter for WordPress 插件。此插件將 44 個不同的 js 和 css 文件加載到 14 個文件中,但很容易防止加載所有 js 文件,
注意事項 - 自動語法著色
以下插件仍可正常使用,但使用 superslider-perpost-code 短代碼時將不會自動上色。
仍需要按照指示使用代碼突出顯示插件。這通常依賴於在文章中包圍代碼的短代碼。
CodeColorer
Crayon-syntax-highlighter
Better WordPress Syntax
如果您使用特定的語法突出顯示插件並希望為 SuperSlider-Perpost-Code 插件進行修復,請告訴我。
升級提示
無需特殊說明即可升級
停用插件不會從數據庫中刪除自訂程式碼。
外掛標籤
開發者團隊
原文外掛簡介
Write css and javascript code directly on your post edit screen on a per post basis. Meta boxes provide a quick and easy way to enter custom code to each post. It then loads the code into your frontend theme header if the post has custom code. You may also display your custom code directly into your post with the custom_css or custom_js shortcode.
Features
easy use meta boxes for entering custom css and javascript
Only loads custom code for the specific post or page.
Customize the appearence or functionality of each page or post.
Stores the css and javascript codes into the postmeta table with hidden meta_keys.
All entered css will be active on this post.
All entered javascript will be active on this post.
Short code to display your custom code directly into the post.
The following options are available:
Show custom Css metabox on edit screens or turn it off.
Show custom Javascript metabox on edit screens or turn it off.
Set the minimum user level to be able to use the custom meta boxes.
Plugin integration
Automatically works well with Prettify GC Syntax Highlighter plugin. Good for front side syntax highlighting. loads 42k in 2 different js and css, loads for all pages, regardless of post having code.
Automatically works well with Google Syntax Highlighter for WordPress plugin. This plugin loads 44 k. in 14 different js and css files, though it is easy enough to prevent loading all of the js files,
Caveats – automatic syntax coloring
The following plugins will still work as expected, but useing the superslider-perpost-code shortcode will not be automatically colored.
You will still need to use the code highlighter plugin as instructed. Which typically relies on a shortcode wrapped around your code in the post.
CodeColorer
Crayon-syntax-highlighter
Better WordPress Syntax
If you use a specific syntax highlighter and would like it to work nice with the SuperSlider-Perpost-Code plugin let me know.
Upgrade Notice
There are no special instructions for upgrading
deactivation of the plugin will not erase your custom code from the data base.
