该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Advanced Custom Fields Page Builder

描述

PLEASE NOTE: The following plugins or add-ons are required for this 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
  • 按钮
  • 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.

配置

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);

用法

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 );

或者

echo get_sections( $id );

屏幕截图

  • All sections collapsed
  • Banner section options
  • Button section options
  • Content Grid section options
  • Gallery section options
  • Raw HTML section options
  • Simple Contact Forms section options
  • WYSIWYG section options
  • Full Page of created sections

安装

Install the plugin by following these steps:

  1. Upload the acf-page-builder folder to the /wp-content/plugins/ directory
  2. 通过WordPress的的“Plugins”菜单激活插件
  3. Check out the settings page to create some fields and see how to include it in your theme

The plugin can also be searched for and installed directly in the WordPress Plugin manager.

Make sure that you have Advanced Custom Fields installed.

常见问题

Can I ask you a question?

Yes. Head over to the GitHub page with any questions or feature requests. You might also find your answer in the support tab. Feel free to contact us if you can’t find an answer, or reach us on Twitter.

评价

2016 年 9 月 3 日 1 回复
Hey! It is nice to see someone getting this a go. I ve seen some prototypes on the net and would like to see this become a must to install add-on to ACF. I would look in to this https://bitbucket.org/dachcom/dachcom-page-designer/overview Good luck!
阅读所有2条评价

贡献者及开发者

「Advanced Custom Fields Page Builder」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

v1.1.4

  • Remove ID as an option to call the sections – doesn’t work
  • The container is now disabled if Bootstrap is not selected
  • Tested up to 4.6.1

v1.1.3

  • Fixed the containment and bootstrap toggle – wasn’t working!

v1.1.2

  • Changed contributors and some house keeping

v1.1.1

  • The very first version! Includes the following sections: banners, buttons, content grid, galleries, raw HTML, normal WYSIWYG text and simple contact form integration