shopify商店编辑模板代码和回退到旧版模板步骤-ESG跨境

shopify商店编辑模板代码和回退到旧版模板步骤

shopify新闻
shopify新闻
2022-03-28
点赞icon 0
查看icon 918

您可以编辑模板的代码。

编辑模板代码

您可以编辑模板的代码。

步骤:

PC:

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

  1. 点击操作 > 编辑代码

代码编辑器的左侧显示了模板文件的目录,右侧显示了用于查看和编辑文件的空间。

可以通过点击展开图标来展开代码编辑器以填充屏幕:

可以通过点击折叠图标来将页面恢复正常:

点击左侧目录中的文件时,它将在代码编辑器中打开。您可以一次打开和编辑多个文件。您修改的所有文件都会在文件名旁边显示一个圆点:

这可以帮助您跟踪已做出更改的地方。

苹果系统:

  1. 在  应用中,轻触商店

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

  3. 轻触管理模板

  1. 点击操作 > 编辑代码

代码编辑器的左侧显示了模板文件的目录,右侧显示了用于查看和编辑文件的空间。

可以通过点击展开图标来展开代码编辑器以填充屏幕:

可以通过点击折叠图标来将页面恢复正常:

点击左侧目录中的文件时,它将在代码编辑器中打开。您可以一次打开和编辑多个文件。您修改的所有文件都会在文件名旁边显示一个圆点:

这可以帮助您跟踪已做出更改的地方。

安卓系统:

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

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

  3. 轻触管理模板

  1. 点击操作 > 编辑代码

代码编辑器的左侧显示了模板文件的目录,右侧显示了用于查看和编辑文件的空间。

可以通过点击展开图标来展开代码编辑器以填充屏幕:

可以通过点击折叠图标来将页面恢复正常:

点击左侧目录中的文件时,它将在代码编辑器中打开。您可以一次打开和编辑多个文件。您修改的所有文件都会在文件名旁边显示一个圆点:

这可以帮助您已做出更改的地方。

回退到旧版模板

如果您更改了模板文件并需要恢复,您可以将各个 .liquid 文件回退到执行更改之前的某个时间和日期。

PC:

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

  2. 找到要编辑的模板,然后点击操作 > 编辑代码

  1. 模板标头下,点击最近编辑的一个 .liquid 文件。

  1. 点击 .liquid 文件名旁边的旧版本

  1. 点击下拉菜单以选择旧版本。点击日期戳可将代码回退到该保存的版本。

  1. 可选:点击预览,查看错误是否已修复。

苹果系统:

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

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

  3. 轻触 Manage themes(管理模板)。

  4. 找到要编辑的模板,然后点击操作 > 编辑代码

  1. 模板标头下,点击最近编辑的一个 .liquid 文件。

  1. 点击 .liquid 文件名旁边的旧版本

  1. 点击下拉菜单以选择旧版本。点击日期戳可将代码回退到该保存的版本。

  1. 可选:点击预览,查看错误是否已修复。

安卓系统:

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

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

  3. 轻触 Manage themes(管理模板)。

  4. 找到要编辑的模板,然后点击操作 > 编辑代码

  1. 模板标头下,点击最近编辑的一个 .liquid 文件。

  1. 点击 .liquid 文件名旁边的旧版本

  1. 点击下拉菜单以选择旧版本。点击日期戳可将代码回退到该保存的版本。

  1. 可选:点击预览,查看错误是否已修复。

Edit your theme code

You can edit the code for your theme.

Steps:

PC:

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

  1. Click Actions > Edit code.

The code editor shows a directory of theme files on the left, and a space to view and edit the files on the right.

You can expand the code editor to fill the screen by clicking the expand icon:

You can return the page to normal by clicking the collapse icon:

When you click a file in the directory on the left, it opens in the code editor. You can open and edit multiple files at once. Any files that you modify will show a dot next to the file name:

This can help you to keep track of where you have made changes.

iPhone:

  1. From the Shopify app, tap Store.

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

  3. Tap Manage themes.

  1. Click Actions > Edit code.

The code editor shows a directory of theme files on the left, and a space to view and edit the files on the right.

You can expand the code editor to fill the screen by clicking the expand icon:

You can return the page to normal by clicking the collapse icon:

When you click a file in the directory on the left, it opens in the code editor. You can open and edit multiple files at once. Any files that you modify will show a dot next to the file name:

This can h you to keep track of where you have made changes.

Android:

  1. From the Shopify app, tap Store.

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

  3. Tap Manage themes.

  1. Click Actions > Edit code.

The code editor shows a directory of theme files on the left, and a space to view and edit the files on the right.

You can expand the code editor to fill the screen by clicking the expand icon:

You can return the page to normal by clicking the collapse icon:

When you click a file in the directory on the left, it opens in the code editor. You can open and edit multiple files at once. Any files that you modify will show a dot next to the file name:

This can help you to keep track of where you have made changes.

Roll back to an older version of your theme

If you've changed theme files and need to revert them, you can roll back .liquid files individually to a time and date before you made the changes.

PC:

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

  2. Find the theme you want to edit, and then click Actions > Edit code.

  1. Under the Templates header, click into one of the .liquid files you have edited recently.

  1. Click Older versions next to the .liquid file name.

  1. Click the drop-down menu to select an older version. Clicking a datestamp will roll the code back to that saved version.

  1. Optional: click P and see if the error was fixed.

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 you want to edit, and then click Actions > Edit code.

  1. Under the Templates header, click into one of the .liquid files you have edited recently.

  1. Click Older versions next to the .liquid file name.

  1. Click the drop-down menu to select an older version. Clicking a datestamp will roll the code back to that saved version.

  1. Optional: click Preview and see if the error was fixed.

Androi:

  1. From the Shopify app, tap Store.

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

  3. Tap Manage themes.

  4. Find the theme you want to edit, and then click Actions > Edit code.

  1. Under the Templates header, click into one of the .liquid files you have edited recently.

  1. Click Older versions next to the .liquid file name.

  1. Click the drop-down menu to select an older version. Clicking a datestamp will roll the code back to that saved version.

  1. Optional: click Preview and see if the error was fixed.



特别声明:以上文章内容仅代表作者本人观点,不代表ESG跨境电商观点或立场。如有关于作品内容、版权或其它问题请于作品发表后的30日内与ESG跨境电商联系。

搜索 放大镜
韩国平台交流群
加入
韩国平台交流群
扫码进群
欧洲多平台交流群
加入
欧洲多平台交流群
扫码进群
官网询盘
加入
官网询盘
扫码进群
美国卖家交流群
加入
美国卖家交流群
扫码进群
ESG跨境专属福利分享群
加入
ESG跨境专属福利分享群
扫码进群
拉美电商交流群
加入
拉美电商交流群
扫码进群
亚马逊跨境增长交流群
加入
亚马逊跨境增长交流群
扫码进群
亚马逊跨境增长交流群
加入
亚马逊跨境增长交流群
扫码进群
拉美电商交流群
加入
拉美电商交流群
扫码进群
《TikTok综合运营手册》
《TikTok短视频运营手册》
《TikTok直播运营手册》
《TikTok全球趋势报告》
《韩国节日营销指南》
《开店大全-全球合集》
《开店大全-主流平台篇》
《开店大全-东南亚篇》
《CD平台自注册指南》
《开店大全-俄罗斯篇》
通过ESG入驻平台,您将解锁
绿色通道,更高的入驻成功率
专业1v1客户经理服务
运营实操指导
运营提效资源福利
平台官方专属优惠

立即登记,定期获得更多资讯

订阅
联系顾问

平台顾问

平台顾问 平台顾问

微信扫一扫
马上联系在线顾问

icon icon

小程序

微信小程序

ESG跨境小程序
手机入驻更便捷

icon icon

返回顶部