[WordPress] 外掛分享: Visual Composer Templates Library

首頁外掛目錄 › Visual Composer Templates Library
WordPress 外掛 Visual Composer Templates Library 的封面圖片
700+
安裝啟用
★★★★★
5/5 分(1 則評價)
3180 天前
最後更新
問題解決
WordPress 4.2.0+ v1.0.2 上架:2017-07-03

內容簡介

這個外掛提供了一個框架,可用於創建主題和外掛,並利用 Visual Composer 內置的模板功能(從版本4.4開始)。它通過從主題(和可選插件)文件夾中加載模板,使得以簡單的方式控制模板版本成為可能。

Visual Composer 模板庫

這個外掛提供了一個框架,可用於創建主題和外掛,並利用 Visual Composer 內置的模板功能(從版本4.4開始)。

視頻演示:

它通過從主題(和可選插件)文件夾中加載模板,使得以簡單的方式控制模板版本成為可能。

建立模板

創建模板非常容易。首先在 Visual Composer 中創建一個佈局。(例如,通過創建具有所需佈局的新頁面)

完成後,單擊「經典模式」按鈕返回 TinyMCE WYSISYG,然後單擊「Text」頁籤。現在,您可以將佈局的內容複製到模板中!

工作流程:
screenshot-1. (png|jpg|jpeg|gif)

在主題中使用

要將模板與您的主題捆綁在一起,請創建文件夾:

/your-theme/vc_templates

然後,創建一個文件,例如:

/your-theme/vc_templates/my-template.php

唯一的要求是文件必須具有 .php 擴展名。

將您從上面的「建立模板」部分得到的模板粘貼到其中,然後當您單擊 Visual Composer 中的模板 > 默認模板時,您將看到一個名為「My Template」的新模板。完成了!

工作流程:
screenshot-2. (png|jpg|jpeg|gif)

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Visual Composer Templates Library」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin provides a framework for creating themes and plugins that utilize the built-in template function in Visual Composer (as of version 4.4). It works by loading templates from files in your theme (and optionally plugin) folders, making it possible to version control templates in a simple way.
Visual Composer Templates Library
This plugin provides a framework for creating themes and plugins that utilize the built-in template function in Visual Composer (as of version 4.4)
Video Demo:

It works by loading templates from files in your theme (and optionally plugin) folders, making it possible to version control templates in a simple way.
Building templates
Building a template is easy. Start out by creating a layout in Visual Composer. (For example, by creating a new page with the layout you want.)
When you are done, click the “Classic mode” button to return to the TinyMCE WYSISYG, and then click on the Text tab. Now you can copy the content of your layout into a template!
Workflow:
screenshot-1.(png|jpg|jpeg|gif)
Using in a theme
To bundle templates with your theme, create the folder:
/your-theme/vc_templates

Then, create a file, for example:
/your-theme/vc_templates/my-template.php

The only requirement is that the file has a .php extension.
Paste the template you got from the “Building templates” section above, and you will see a new template called “My Template” after you click on Templates > Default Templates in Visual Composer. You’re done!
Workflow:
screenshot-2.(png|jpg|jpeg|gif)

延伸相關外掛

文章
Filter
Apply Filters
Mastodon