使用块

块是构成页面模板中的分区的可自定义模块。您可以使用块来添加文本、图片、链接、按钮等。

Shopify 模板中包含您可以自定义的分区和块。某些分区具有固定的块类型,这意味着只能从模板设计器为该分区提供的块中进行选择。其他分区允许您选择任何块,但会限制您可以添加到该分区的总块数。如果您分区中的块已达到最大可用数量,则会显示一条消息,提示已达到限制,并且在您删除现有块之前,+ 添加块选项将显示为灰色。

添加块

PC:

  1. Shopify 后台中,转到在线商店 > 模板

  2. 找到您要编辑的模板,然后点击自定义

  1. 在下拉菜单中,选择其中包含您要编辑的分区的模板。

  2. 点击分区以将内容加载到预览窗口中,并访问您可用的选项。

  3. 点击 + 添加块并选择一个新块,或点击搜索栏以输入搜索词。

  4. 点击保存

苹果系统:

  1. 在 Shopify 应用中,轻触商店

  2. 销售渠道部分,轻触在线商店

  3. 轻触管理模板

  4. 找到您要编辑的模板,然后轻触自定义

  5. 轻触编辑

  1. 在下拉菜单中,选择其中包含您要编辑的分区的模板。

  2. 点击分区以将内容加载到预览窗口中,并访问您可用的选项。

  3. 点击 + 添加块并选择一个新块,或点击搜索栏以输入搜索词。

  4. 点击保存

安卓系统:

  1. 在 Shopify 应用中,轻触商店

  2. 销售渠道部分,轻触在线商店

  3. 轻触管理模板

  4. 找到您要编辑的模板,然后轻触自定义

  5. 轻触编辑

  1. 在下拉菜单中,选择其中包含您要编辑的分区的模板。

  2. 点击分区以将内容加载到预览窗口中,并访问您可用的选项。

  3. 点击 + 添加块并选择一个新块,或点击搜索栏以输入搜索词。

  4. 点击保存

使用元字段和动态源

元字段可用于在您的在线商店中显示动态信息。如果您有支持元字段的模板,您可以将元字段连接到模板编辑器中的分区或块。

例如,蜡烛卖家可能想显示每种在售蜡烛的燃烧时间。设置用于燃烧时间的元字段后,卖家可以将用于燃烧时间的块添加到他们的产品模板中,然后将该块连接到元字段。为列出燃烧时间的页面设置产品系列元字段后,卖家可以将块添加到他们的产品系列模板中,然后将此块连接到产品系列元字段。

您可以通过添加可使用动态源的分区或块来在您的在线商店中显示动态信息。动态源可用于产品模板中的任何分区或块。在非产品模板中,动态源可用于显示产品的分区或块。您需要先添加元字段,然后才能在模板中连接它。请参阅动态源,了解有关在模板中使用元字段和动态源的更多信息。

完成设置过程后,请按照以下步骤将动态源插入模板:

PC:

  1. 在 Shopify 后台中,转到在线商店 > 模板

  2. 找到您要编辑的模板,然后点击自定义

  1. 在下拉菜单中,选择其中包含您要编辑的分区的模板。

  2. 点击现有分区以将内容加载到预览窗口中并访问您可用的选项,或点击 + 添加分区

  3. 点击 + 添加块,然后连接动态源:

  • 如果显示连接动态源图标,请点击该图标以选择一个元字段:

  • 如果连接动态源图标显示 +,则点击该符号以选择元字段(最多 20 个),然后一次添加一个元字段:

  1. 点击保存

苹果系统:

  1. 在 Shopify 应用中,轻触商店

  2. 销售渠道部分,轻触在线商店

  3. 轻触管理模板

  4. 找到您要编辑的模板,然后轻触自定义

  5. 轻触编辑

  1. 在下拉菜单中,选择其中包含您要编辑的分区的模板。

  2. 点击现有分区以将内容加载到预览窗口中并访问您可用的选项,或点击 + 添加分区

  3. 点击 + 添加块,然后连接动态源:

  • 如果显示连接动态源图标,请点击该图标以选择一个元字段:

  • 如果连接动态源图标显示 +,则点击该符号以选择元字段(最多 20 个),然后一次添加一个元字段:

  1. 点击保存

安卓系统:

  1. 在 Shopify 应用中,轻触商店

  2. 销售渠道部分,轻触在线商店

  3. 轻触管理模板

  4. 找到您要编辑的模板,然后轻触自定义

  5. 轻触编辑

  1. 在下拉菜单中,选择其中包含您要编辑的分区的模板。

  2. 点击现有分区以将内容加载到预览窗口中并访问您可用的选项,或点击 + 添加分区

  3. 点击 + 添加块,然后连接动态源:

  • 如果显示连接动态源图标,请点击该图标以选择一个元字段:

  • 如果连接动态源图标显示 +,则点击该符号以选择元字段(最多 20 个),然后一次添加一个元字段:

  1. 点击保存

Shopify商户官网原文详情:

Working with blocks

Blocks are customizable modules that make up the sections in your page templates. You can use blocks to add text, images, links, buttons, and more.

Shopify themes have sections and blocks that you can customize. Some sections have fixed block types, which means that you can only choose from the blocks made available to that section by the theme designer. Other sections allow you to select any block, but limit the total number of blocks that you can add to the section. If your section reaches the maximum number of blocks available, then a message displays the limit reached, and the + Add block option is greyed out until an existing block is removed.

Add a block

PC:

  1. From your Shopify admin, go to Online Store > Themes.

  2. Find the theme that you want to edit, and then click Customize.

  1. From the dropdown menu, select the template that contains the section that you want to edit.

  2. Click a section to load the content into the preview window and access the options available to you.

  3. Click + Add block and select a new block, or click the Search bar to enter a search term.

  4. Click Save.

iPhone:

  1. From the Shopify app, tap Store.

  2. In the Sales channels section, tap Online Store.

  3. Tap Manage themes.

  4. Find the theme that you want to edit, and then tap Customize.

  5. Tap Edit.

  1. From the dropdown menu, select the template that contains the section that you want to edit.

  2. Click a section to load the content into the preview window and access the options available to you.

  3. Click + Add block and select a new block, or click the Search bar to enter a search term.

  4. Click Save.

Android:

  1. From the Shopify app, tap Store.

  2. In the Sales channels section, tap Online Store.

  3. Tap Manage themes.

  4. Find the theme that you want to edit, and then tap Customize.

  5. Tap Edit.

  1. From the dropdown menu, select the template that contains the section that you want to edit.

  2. Click a section to load the content into the preview window and access the options available to you.

  3. Click + Add block and select a new block, or click the Search bar to enter a search term.

  4. Click Save.

Using metafields and dynamic sources

Metafields allow you to display dynamic information on your online store. If you have a theme that supports metafields, then you can connect a metafield to a section or block in the theme editor.

For example, a candle seller might want to display burn times for each type of candle available. After setting up a product metafield for burn time, the seller can add a block for burn time to their product template and then connect it to the product metafield. After setting up a collection metafield for a page that lists burn times, the seller can add a block to their collection template and then connect it to the collection metafield.

You can display dynamic information in your online store by adding sections or blocks that can use dynamic sources. Dynamic sources can be used in any section or block in a product template. In non-product templates, dynamic sources can be used in sections or blocks that show products. You need to add your metafield before you can connect it in your templates. Refer to Dynamic Sources for more information about using metafields and dynamic sources in your theme.

After you complete the setup process, follow these steps to insert the dynamic source into your template:

PC:

  1. From your Shopify admin, go to Online Store > Themes.

  2. Find the theme that you want to edit, and then click Customize.

  1. From the dropdown menu, select the template that contains the section that you want to edit.

  2. Click an existing section to load the content into the preview window and access the options available to you, or click + Add section.

  3. Click + Add block, and then connect a dynamic source:

  • If the connect dynamic source icon is displayed, then click to select a single metafield:

  • If the connect dynamic source icon displays a +, then click to select up to 20 metafields by adding them one at a time:

  1. Click Save.

iPhone:

  1. From the Shopify app, tap Store.

  2. In the Sales channels section, tap Online Store.

  3. Tap Manage themes.

  4. Find the theme that you want to edit, and then tap Customize.

  5. Tap Edit.

  1. From the dropdown menu, select the template that contains the section that you want to edit.

  2. Click an existing section to load the content into the preview window and access the options available to you, or click + Add section.

  3. Click + Add block, and then connect a dynamic source:

  • If the connect dynamic source icon is displayed, then click to select a single metafield:

  • If the connect dynamic source icon displays a +, then click to select up to 20 metafields by adding them one at a time

  1. Click Save.

Android:

  1. From the Shopify app, tap Store.

  2. In the Sales channels section, tap Online Store.

  3. Tap Manage themes.

  4. Find the theme that you want to edit, and then tap Customize.

  5. Tap Edit.

  1. From the dropdown menu, select the template that contains the section that you want to edit.

  2. Click an existing section to load the content into the preview window and access the options available to you, or click + Add section.

  3. Click + Add block, and then connect a dynamic source:

  • If the connect dynamic source icon is displayed, then click to select a single metafield:

  • If the connect dynamic source icon displays a +, then click to select up to 20 metafields by adding them one at a time:

  1. Click Save.

文章内容来源:Shopify商户官方网站


(本文内容根据网络资料整理,出于传递更多信息之目的,不代表连连国际赞同其观点和立场)
*连连国际 (LianLian Global) 是连连数字旗下跨境支付核心品牌