
內容簡介
請注意:以下 WordPress 外掛或附加元件是此功能所必需的:
Advanced Custom Fields 是必要的
Advanced Custom Fields Flexible Content add-on field 是必要的
Simple Contact Forms 必須安裝,才能使用「Simple Contact Forms」頁面建構區塊
ACF Page Builder 使用 Advanced Custom Fields Flexible Content field 來建立一些可完全自訂的頁面元素。如果與Bootstrap一起使用,此外掛程式運作得最佳,但並不是必要的。這些元素包括:
橫幅圖片
按鈕
Bootstrap 內容網格
影像圖庫(包括文字及標題)
原始 HTML 與 JavaScript
Simple Contact Forms
所見即所得內容
每個元素均可進行設定,請參閱屏幕截圖以瞭解配置選項。預設選項為背景顏色、包裝類別以及元素是否需要被包含(僅限 Bootstrap!)有關任何更多頁面區塊的問題,歡迎聯絡我們或提交拉取請求。
ACF Page Builder 由Big Lemon Creative創建且管理。
配置
若要配置在哪些文章類型或頁面樣板上顯示此頁面建構程式,請使用以下篩選器於您的 functions.php 檔案中:
function support_acfpb( $support = array() ) {
$support['post_type'] = array(
'page',
'post'
);
$support['page_template'] = array(
'page-templates/page-sectioned.php'
);
return $support;
}
add_filter('acfpb_set_locations', 'support_acfpb', 10, 1);
用法
我們已設計此外掛程式與 ACF 的 get_field() 及 the_field() 語法相符的功能。使用以下函式在前端取得或直接輸出這些區塊,ID 為選用的參數。
the_sections( $id );
或
echo get_sections( $id );
外掛標籤
開發者團隊
② 後台搜尋「Advanced Custom Fields Page Builder」→ 直接安裝(推薦)
原文外掛簡介
PLEASE NOTE: The following plugins or add-ons are required for this to work:
Advanced Custom Fields is ESSENTIAL
The Advanced Custom Fields Flexible Content add-on field is essential
Simple Contact Forms is required for the Simple Contact Forms page builder section to work
The ACF Page Builder uses the Advanced Custom Fields Flexible Content field to create a bunch of completely customisable page elements. This plugin works best when used with Bootstrap, but it isn’t essential. These elements include:
Banner images
Buttons
Bootstrap Content Grids
Image Gallery (with text and caption)
Raw HTML and JavaScript
Simple Contact Forms
WYSIWYG Content
Each element can be configured – see the screenshots for configuration options. Default options are background colours, wrapper classes and if the element needs to be contained (Bootstrap only!) Please get in touch or submit pull requests for any more page sections.
The ACF Page Builder was created and is managed by Big Lemon Creative.
Configuration
To configure which post types or page templates the page builder is displayed on, use the following filter in your functions.php file:
function support_acfpb( $support = array() ) {
$support['post_type'] = array(
'page',
'post'
);
$support['page_template'] = array(
'page-templates/page-sectioned.php'
);
return $support;
}
add_filter('acfpb_set_locations', 'support_acfpb', 10, 1);
Usage
We designed the functions to match the ACF syntax of get_field() and the_field(). Use the functions below to get or directly echo the sections on the front end. The ID is optional.
the_sections( $id );
OR
echo get_sections( $id );
