CherryFramework 4. 如何使用短代码
August 11, 2015
本教程展示了如何使用短代码 CherryFramework 4.
CherryFramework 4. 如何使用短代码CherryFramework 4允许扩展使用短代码的可能性. 短代码既可以用于帖子,也可以用于页面. Click ‘Insert Shortcode’ 按钮顶部创建一个:
这将打开一个可用短代码列表. Feel free to use “搜寻短码” 字段:输入 shortcode 如果你记得的话,标题在这里. ‘Filter by type’ 允许根据内容类型选择所需的短代码.
为了更方便使用,它们被分成几个部分. These are 网格,排版,内容, Media, Components and others:
-
Grid -用于显示列格式的容器和元素以及显示网格;
-
Typography -设置的元素 layout formatting;
-
Content -显示界面格式的元素;
-
Media, Components -用于附加内容元素;
-
Other -用于内容高级管理的附属元素.
当选择任何 shortcode 从列表中输入,您将得到扩展表格来填写. 形式因不同而不同 shortcode 类型,不过您仍然可以找到一些常见的选项. They are 预置,最后使用的设置 (如果你已经使用过这种类型的 shortcode before), Live Preview, and Insert Shortcode:
一旦你填好了 shortcode, click the ‘Live Preview’ 按钮底部,看看它的样子. Edit shortcode 如果对临时结果不满意,可以选择:
你可能需要一模一样的 shortcode 为了将来的修改. Use the Presets option. 这避免了生成相同的内容 shortcode 未来编辑的设置. Hover over the ‘Presets’ button and press 将当前设置保存为 preset’. 使用此选项创建各种预设列表,以便将来在其他帖子/页面中使用:
Click ‘Insert Shortcode’ 按钮在底部一旦完成更改. 这将生成 shortcode 行,并将其放入页面/帖子内容:
如果需要编辑已创建的 shortcode 插入到页面/帖子后的行,突出显示它 shortcode line, press ‘Insert Shortcode’ button, and select the same shortcode 从列表中输入. Then hover over Presets > Last used settings and modify those. Insert shortcode 到页,这将 update 已经创建了一个新的设置:
CherryFramework 4 allows creating various types of shortcodes; these are 行,列,框,帖子,列表,选项卡,投资组合 and others. 新项目已添加- swiper carousel、懒惰局部效应、跟随、反击等. 现在你可以使用颜色选择器,图标选择器 FontAwesome icons), set up layout 对于不同的屏幕视图(特别小的设备), small devices, medium devices, and large screens), specify thumbnail 维度,以及其他 shortcode options directly.
Please, check the CherryFramework的文档 有关使用特定短代码及其选项的更多详细信息.
请随时查看下面的详细视频教程,了解如何使用上述选项和特定选项 shortcode types:
CherryFramework 4. 如何使用短代码