您可以編輯模板的代碼。
您可以編輯模板的代碼。
PC:
在 Shopify 后臺中,轉到 > 模板。
點擊操作 > 編輯代碼。
代碼編輯器的左側顯示了模板文件的目錄,右側顯示了用于查看和編輯文件的空間。
可以通過點擊展開圖標來展開代碼編輯器以填充屏幕:
可以通過點擊折疊圖標來將頁面恢復正常:
點擊左側目錄中的文件時,它將在代碼編輯器中打開。您可以一次打開和編輯多個文件。您修改的所有文件都會在文件名旁邊顯示一個圓點:
這可以幫助您跟蹤已做出更改的地方。
蘋果系統:
在 應用中,輕觸商店。
在銷售渠道部分,輕觸在線商店。
輕觸管理模板。
點擊操作 > 編輯代碼。
代碼編輯器的左側顯示了模板文件的目錄,右側顯示了用于查看和編輯文件的空間。
可以通過點擊展開圖標來展開代碼編輯器以填充屏幕:
可以通過點擊折疊圖標來將頁面恢復正常:
點擊左側目錄中的文件時,它將在代碼編輯器中打開。您可以一次打開和編輯多個文件。您修改的所有文件都會在文件名旁邊顯示一個圓點:
這可以幫助您跟蹤已做出更改的地方。
安卓系統:
在 Shopify 應用中,輕觸商店。
在銷售渠道部分,輕觸在線商店。
輕觸管理模板。
點擊操作 > 編輯代碼。
代碼編輯器的左側顯示了模板文件的目錄,右側顯示了用于查看和編輯文件的空間。
可以通過點擊展開圖標來展開代碼編輯器以填充屏幕:
可以通過點擊折疊圖標來將頁面恢復正常:
點擊左側目錄中的文件時,它將在代碼編輯器中打開。您可以一次打開和編輯多個文件。您修改的所有文件都會在文件名旁邊顯示一個圓點:
這可以幫助您已做出更改的地方。
如果您更改了模板文件并需要恢復,您可以將各個 .liquid
文件回退到執行更改之前的某個時間和日期。
PC:
在 Shopify 后臺中,轉到在線商店 > 模板。
找到要編輯的模板,然后點擊操作 > 編輯代碼。
在模板標頭下,點擊最近編輯的一個 .liquid 文件。
點擊 .liquid
文件名旁邊的舊版本。
點擊下拉菜單以選擇舊版本。點擊日期戳可將代碼回退到該保存的版本。
可選:點擊預覽,查看錯誤是否已修復。
蘋果系統:
在 Shopify 應用中,輕觸商店。
在銷售渠道部分中,輕觸在線商店。
輕觸 Manage themes(管理模板)。
找到要編輯的模板,然后點擊操作 > 編輯代碼。
在模板標頭下,點擊最近編輯的一個 .liquid 文件。
點擊 .liquid
文件名旁邊的舊版本。
點擊下拉菜單以選擇舊版本。點擊日期戳可將代碼回退到該保存的版本。
可選:點擊預覽,查看錯誤是否已修復。
安卓系統:
在 Shopify 應用中,輕觸商店。
在銷售渠道部分中,輕觸在線商店。
輕觸 Manage themes(管理模板)。
找到要編輯的模板,然后點擊操作 > 編輯代碼。
在模板標頭下,點擊最近編輯的一個 .liquid 文件。
點擊 .liquid
文件名旁邊的舊版本。
點擊下拉菜單以選擇舊版本。點擊日期戳可將代碼回退到該保存的版本。
可選:點擊預覽,查看錯誤是否已修復。
Edit your theme code
You can edit the code for your theme.
Steps:
PC:
From your Shopify admin, go to Online Store > Themes.
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:
From the Shopify app, tap Store.
In the Sales channels section, tap Online Store.
Tap Manage themes.
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:
From the Shopify app, tap Store.
In the Sales channels section, tap Online Store.
Tap Manage themes.
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:
From your Shopify admin, go to Online Store > Themes.
Find the theme you want to edit, and then click Actions > Edit code.
Under the Templates header, click into one of the .liquid files you have edited recently.
Click Older versions next to the
.liquid
file name.
Click the drop-down menu to select an older version. Clicking a datestamp will roll the code back to that saved version.
Optional: click P and see if the error was fixed.
iPhone:
From the Shopify app, tap Store.
In the Sales channels section, tap Online Store.
Tap Manage themes.
Find the theme you want to edit, and then click Actions > Edit code.
Under the Templates header, click into one of the .liquid files you have edited recently.
Click Older versions next to the
.liquid
file name.
Click the drop-down menu to select an older version. Clicking a datestamp will roll the code back to that saved version.
Optional: click Preview and see if the error was fixed.
Androi:
From the Shopify app, tap Store.
In the Sales channels section, tap Online Store.
Tap Manage themes.
Find the theme you want to edit, and then click Actions > Edit code.
Under the Templates header, click into one of the .liquid files you have edited recently.
Click Older versions next to the
.liquid
file name.
Click the drop-down menu to select an older version. Clicking a datestamp will roll the code back to that saved version.
Optional: click Preview and see if the error was fixed.
特別聲明:以上文章內容僅代表作者本人觀點,不代表ESG跨境電商觀點或立場。如有關于作品內容、版權或其它問題請于作品發表后的30日內與ESG跨境電商聯系。
平臺顧問
微信掃一掃
馬上聯系在線顧問
小程序
ESG跨境小程序
手機入駐更便捷
返回頂部