前言介紹
- 這款 WordPress 外掛「Just Post Preview Widget」是 2015-10-28 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2017-03-06,距離現在已有 2981 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.0 以上版本才可以安裝。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
widget | layouts | developer | post preview |
內容簡介
這個外掛是為了讓開發人員可以輕鬆編輯複雜的版面配置,並在版面配置內插入不同的文章標題方塊,以及應用在側邊欄或頁面建構器上。預設提供了3種預定義的版面配置,你可以在你的主題中重新編寫它們或註冊自定義配置。
不幸的是,預定義的版面配置內沒有樣式。 (因為它們無論如何都會在主題中被完全覆蓋)
範本檔案
要覆寫預定義的範本,你應該在你主題的根目錄中創建一個名為“just-post-preview”的文件夾,並從/wp-content/plugins/just-post-preview/layouts/文件夾中複製所需的範本。
檔案名稱格式:jpp_layout_{layout key}.php
在演示範本的頂端,你可以找到PHP註釋。它們可以幫你的集成開發環境顯示可用變數的自動完成選單。
添加自定義版面配置
要添加自定義版面配置,你需要在你的主題functions.php文件中添加一個新的過濾器鉤子:
add_filter('jpp_post_preview_layouts', 'my_post_preview_layouts');
function my_post_preview_layouts($layouts){
$layouts['my_layout_key'] = 'My custom layout';
return $layouts;
}
在鉤子之後,你需要在/path/to/theme/just-post-preview文件夾中創建一個名為jpp_layout_my_layout_key.php的範本檔案。
就是這樣!
如果你發現任何錯誤或問題,請隨時聯繫我!
問題追蹤器
這個專案也可以在 GitHub 上找到。請在那裡發布你的問題或反饋。
https://github.com/aprokopenko/just-post-preview
原文外掛簡介
This plugin is for developers who need easy to edit the complex layouts and insert different post tile blocks inside the layout,
sidebars or page builders. By default, it has 3 pre-defined layouts; you can rewrite them in your theme or register custom layouts.
Unfortunately the pre-defined layouts have no styles inside. (Because they will be overwritten in the theme 100% anyway).
Template files
To overwrite the pre-defined templates, you should create a folder with the name “just-post-preview” in the root
of your theme and copy required templates from the /wp-content/plugins/just-post-preview/layous/ folder.
File names format: jpp_layout_{layout key}.php
You can find PHP comments on the top of the demo templates. They help your IDE to show you autocomplete boxes for available variables.
Adding custom layout
To add a custom layout, you need to add a new filter hook in your theme functions.php file:
add_filter('jpp_post_preview_layouts', 'my_post_preview_layouts');
function my_post_preview_layouts($layouts){
$layouts['my_layout_key'] = 'My custom layout';
return $layouts;
}
After that hook you will need to create a template file in the /path/to/theme/just-post-preview folder with the name jpp_layout_my_layout_key.php.
That’s all!
FILL FREE TO CONTACT ME IF YOU FIND ANY BUGS/ISSUES!
ISSUES TRACKER
The project is also available on github. Please post your issues or feedbacks there.
https://github.com/aprokopenko/just-post-preview
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Just Post Preview Widget」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Extendify 》Extendify 是一個網站設計和製作工具平台,提供豐富的圖案和全頁面佈局,可用於 Gutenberg 區塊編輯器,幫助人們建立美麗的 WordPress 網站。, 使用 Extendif...。
Custom Dashboard Widgets 》自訂儀表板小工具, 隱藏所有預設的儀表板小工具,並新增一個自訂的小工具,顯示常用儀表板連結和頁面,以完整管理您的網站和儀表板。, 功能, , 易於使用,外...。
WP Layouts 》利用 WP Layouts,您不再需要花時間在硬碟或雲端導入、導出、排序、搜尋及組織 JSON 檔案。這是目前最佳的方式可以讓您整理、導入及導出版面配置,特別是當您...。
Genesis Layout Extras – Default Layouts in Genesis for WordPress 》這是前十大下載量最多的 Genesis 外掛之一🙂非常感謝!, 👉 在 Genesis 設置預設佈局, 這款輕量級的外掛可與流行的 Genesis 框架一起使用,讓您能夠非常輕鬆...。
Theme Blvd Layout Builder 》注意:此外掛需要搭配搭載 Theme Blvd Framework 的支援主題使用。, 當您使用搭載 Theme Blvd 主題時,此外掛會提供您一個流暢的介面,讓您能用框架的核心元...。
EnvoThemes Demo Importer for KingComposer 》使用一個點擊即可匯入 Envo Business 模板的演示版面。, 此外掛需要安裝 Envo Business 主題和 KingComposer 外掛。, 請參閱文檔頁面以獲得更多指示。, Envo ...。
Aploblocks – Styling and Patterns for the block editor 》AploBlocks 將額外功能添加到 WordPress 核心區塊中。它專為區塊主題設計,可幫助您輕鬆實現令人難以置信的設計功能。如果您知道如何使用區塊編輯器,那麼您...。
Addon Library Layouts Builder 》使用外掛程式庫的附加元件建立佈局。
Woo Tuner 》這是一款非常棒的 WooCommerce 外掛,它讓你可以在不需要編程技能的情況下自定義 WooCommerce 的模板/佈局!, 關於 WooTuner, WooTuner 是一個簡單易用的 Woo...。
Gutenberg Tile Block 》Gutenberg 的版面區塊外掛,可建立更為有趣及現代化的頁面設計。, , 在美麗的圖片旁,依次顯示小段的文本, 讓您的網頁呈現「雜誌」風格, 完全支援回應式網頁...。
Rating Layouts 》使用 WordPress 方塊顯示不同佈局的評分。。
Beautimour Kit 》此外掛將啟用所有 Beautimour WordPress 佈景主題的自訂功能。這些自訂功能將擴展 WordPress 網站。, 功能列表:, , 作者簡介社交媒體, Cookie, Pinterest 按...。