[wordpress插件] Advanced Custom Fields Page Builder高级自定义字段页面构建器

wordpress 插件 文章 2020-01-27 03:00 503 0 全屏看文

AI助手支持GPT4.0

评分

60

60

描述

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.

    ACF页面构建器使用“高级自定义字段灵活内容”字段来创建一堆完全可自定义的页面元素。

    This plugin works best when used with Bootstrap, but it isn’t essential.

    该插件与 Bootstrap 一起使用时效果最好,但这不是必需的。

    These elements include:

    这些元素包括:

      • Banner images
      • 横幅图片

      • Buttons
      • 按钮

      • Bootstrap Content Grids
      • 引导内容网格

      • Image Gallery (with text and caption)
      • 图片库(带有文字和标题)

      • Raw HTML and JavaScript
      • 原始HTML和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

      默认选项是背景色,包装器类,以及是否需要包含元素(仅限Bootstrap!),请取得联系

      or submit pull requests for any more page sections.

      提交拉取请求以获取更多页面部分。

      The ACF Page Builder was created and is managed by Big Lemon Creative.

      创建了ACF页面构建器,并由 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:

      要配置显示页面构建器的帖子类型或页面模板,请在functions.php文件中使用以下过滤器:

      function support_acfpb( $support = array() ) {    

        function support_acfpb($ support = array()){    

      $support['post_type'] = array(        

      $ support ['post_type'] = array(        

      'page',        

      '页',        

      'post'    

      “发布”    

      );    

      );    

      $support['page_template'] = array(        

      $ support ['page_template'] =数组(        

      'page-templates/page-sectioned.php'    

      'page-templates / page-sectioned.php'    

      );    

      );    

      return $support;

      返回$ support;

      }

      }

      add_filter('acfpb_set_locations', 'support_acfpb', 10, 1);

      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().

      我们设计了函数以匹配 get_field() the_field()的ACF语法。

      Use the functions below to get or directly echo the sections on the front end.

      使用以下功能获取或直接回显前端中的部分。

      The ID is optional.

      该ID是可选的。

      the_sections( $id );

        the_sections($ id);

      OR

      OR

      echo get_sections( $id );

        echo get_sections($ id);

安装步骤

Install the plugin by following these steps:

请按照以下步骤安装插件:

    1. Upload the acf-page-builder folder to the /wp-content/plugins/ directory
    2. acf-page-builder 文件夹上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Check out the settings page to create some fields and see how to include it in your theme
    6. 查看设置页面以创建一些字段,并查看如何将其包含在主题中

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

    也可以在WordPress插件管理器中搜索并直接安装该插件。

    Make sure that you have Advanced Custom Fields installed.

    确保已安装高级自定义字段

下载地址

https://downloads.wordpress.org/plugin/acf-page-builder.1.1.4.zip

https://downloads.wordpress.org/plugin/acf-page-builder.1.1.4.zip

-EOF-

AI助手支持GPT4.0