[wordpress插件] Advanced Custom Fields: Button Field高级自定义字段:按钮字段

wordpress 插件 文章 2020-01-26 06:20 536 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

NOTE: This is an extension for the popular Advanced Custom Fields plugin.

注意:这是流行的高级自定义字段插件的扩展。

By itself, this plugin does NOTHING. ENDNOTE

本身,该插件没有任何作用。 ENDNOTE

Generates a nice button/link to an external url or an internal post type, similar to the page_link field but allows you to override the link text and link to any post type or a custom url.

生成与外部url或内部帖子类型类似的漂亮按钮/链接,类似于page_link字段,但允许您覆盖链接文本并链接到任何帖子类型或自定义url。

What makes this great is reducing multiple ACF rows into just one (see screenshots for a clear visual walkthrough).

之所以如此出色,在于将多个ACF行减少为一个(请参阅屏幕截图以获取清晰的视觉演练)。

The internal link also uses a dropdown which is populated from all your post types so the button can link to a media file or a Custom Post Type, or of course to a page or post.

内部链接还使用从所有帖子类型填充的下拉列表,因此按钮可以链接到媒体文件或自定义帖子类型,当然也可以链接到页面或帖子。

There are many advanced options as well.

还有许多高级选项。

This will simply add classes to the button link which line up nicely with Zurb Foundation, but can easily be styled by any theme or developer to make these buttons shine.

这将仅向按钮链接添加类,这些类与Zurb Foundation很好地对齐,但是可以由任何主题或开发人员轻松设置样式,以使这些按钮发光。

Options for color, size, style as well allowing the button to open in a new window and add custom classes on the fly.

颜色,大小,样式等选项也允许按钮在新窗口中打开,并即时添加自定义类。

NOTE: (I know it was already mentioned, but just to be sure there's no confusion…) This is an extension for the popular Advanced Custom Fields plugin.

.org / plugins / advanced-custom-fields /“>高级自定义字段插件。

By itself, this plugin does NOTHING. ENDNOTE

本身,该插件没有任何作用。 ENDNOTE

Compatibility

兼容性

This ACF field type is compatible with:
 

此ACF字段类型兼容:
 

* ACF 5

* ACF 5

Roadmap

路线图

    • Add option to add bootstrap styles to buttons
    • 添加选项以将自举样式添加到按钮

    • Add some button styles for users that don’t have any and give an opt out of using button css
    • 为没有任何样式的用户添加一些按钮样式,并选择退出使用按钮css

    • Easily link to media library items for download
    • 轻松链接到媒体库项目以供下载

安装步骤

    1. Copy the acf-button folder into your wp-content/plugins folder
    2. acf-button 文件夹复制到您的 wp-content / plugins 文件夹

    3. Activate the plugin via the plugins admin page
    4. 通过插件管理页面激活插件

    5. Create a new field via ACF and select the Button type
    6. 通过ACF创建新字段,然后选择“按钮”类型

    7. Please refer to the description for more info regarding the field type settings
    8. 有关字段类型设置的更多信息,请参阅说明

下载地址

https://downloads.wordpress.org/plugin/acf-button.1.7.2.zip

https://downloads.wordpress.org/plugin/acf-button.1.7.2.zip

-EOF-

AI助手支持GPT4.0