专注出海运营平台,解决跨境电商问题
当前位置:跨境智通山 > 其他跨境 > 跨境问答 > 正文

shopify模板使用添加块步骤和使用元字段和动态源步骤

2022-03-22 17:32:09 跨境问答

使用块块是构成页面模板中的分区的可自定义模块。您可以使用块来添加文本、图片、链接、按钮等。Shopify 模板中包含您可以自定义的分区和块。某些分区具有固定的块类型,这意味着只能从模板设计器为该分区提

目录

shopify模板使用添加块步骤和使用元字段和动态源步骤

shopify模板使用添加块步骤和使用元字段和动态源步骤详细回答

使用块

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

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. 点击保存

使用元字段和动态源

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

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

提示:

此功能需要支持 JSON 模板的模板。请参阅您的模板文档,了解您的模板是否与动态模板设置兼容。有关使用元字段的更多信息,请参阅元字段文档。

注意

如果您有 Shopify 模板,则可以通过使用模板编辑器来将大多数元字段连接到您的模板。如果您使用其他模板,或者您要添加您的模板不支持的元字段类型,则可以编辑您的模板代码,或聘请 Shopify 专家来帮助您。并非所有分区都支持动态源。请参阅您的模板文档了解详细信息。

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

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

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.

Tip

This feature requires a theme that supports JSON templates. Refer to your theme documentation to find out whether your theme is compatible with dynamic theme settings. For more information about using metafields, refer to the Metafields documentation.

Caution

If you have a Shopify theme, then you can connect most metafields to your theme by using the theme editor. If you're using other themes, or if you want to add metafield types that your theme doesn't support, then you can edit your theme code or hire a Shopify Expert to help you. Not all sections support dynamic sources. Refer to your theme documentation for more information.

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商户官方网站