如何在Shopify上访问/编辑HTML文件? [英] How can I access/edit the HTML file on Shopify?

查看:1107
本文介绍了如何在Shopify上访问/编辑HTML文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这可能是一件非常基本/显而易见的事情,但是我是Shopify的新手,他试图在同事度假时为客户提供帮助.我知道我需要更改以及如何更改它,但不知道如何访问它.当我进入在线商店并单击编辑代码"时,我看到了所有的Liquid,JSON甚至CSS文件,但是找不到我需要编辑的HTML文件,也找不到我需要编辑的任何HTML在theme.liquid文件中.我发现的资源要么已经过时(下拉列表中不再有"Edit HTML/CSS"选项),要么变得毫无用处(例如

I know this is probably a very basic/obvious thing, but I'm new to Shopify and trying to assist a client while a colleague is on vacation. I know what I need to change and how to change it, but not how to access it. When I go to Online Store and click Edit Code, I see all the Liquid, JSON, and even CSS files, but I can't find the HTML file I need to edit, nor can I find any of the HTML I need to edit within the theme.liquid file. The resources I'm finding are all either outdated (there is no "Edit HTML/CSS" option on the dropdown anymore) or unhelpful (like this). I can see the HTML in the console and upon clicking View Page Source, but I don't know how to get to it through Shopify. I feel like I'm losing my mind because this HAS to be very simple and obvious. If someone could please tell me how to access and edit the HTML file on Shopify I would be VERY grateful!

推荐答案

html文件是液体文件.

The html files are the liquid files.

由于这是Shopify主题,因此没有实际的HTML文件.

There are no actual HTML files since this is a Shopify theme.

根据您的主题,文件位于以下位置:

Depending on your theme, your files are located in:

  • theme.liquid-这是页眉和页脚
  • templates/*.liquid-此处的所有临时文件都是不同页面的主要模板
  • sections/*.liquid-此处的文件通常也用于首页和其他页面
  • snippets/*.liquid-这些是可重用的代码段
  • theme.liquid - here are the header and footer
  • templates/*.liquid - all liquid files here are the main templates for the different pages
  • sections/*.liquid - the files here are usually used on the homepage and other pages as well
  • snippets/*.liquid - these are the reusable code snippets

因此,根据您的更改,您将需要遍历这些文件并针对特定更改对其进行更新.

So depending on your changes you will need to go through these files and update them for the specific changes.

请记住,这些文件可能会在多个页面上使用,如果更改其中一个文件,则有可能也会影响其他页面.

Please have in mind that these files may be used on multiply pages and if you change one of them there is a possibility that this will affect other pages as well.

这篇关于如何在Shopify上访问/编辑HTML文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆