從網誌文章移除作者姓名
提示:Debut 和 Minimal 可以選擇在佈景主題設定中移除作者。請前往佈景主題編輯器,並取消勾選「在網誌和文章區段同時顯示作者」的選項。
備註:此教學課程的步驟會因您使用的是區段式或非區段式佈景主題而有所不同。區段式佈景主題可供您拖放以安排首頁的版面配置,而非區段式佈景主題則無法如此執行此操作。
若要確定您的佈景主題是否支援區段,請前往佈景主題的「編輯程式碼」頁面。如果區段目錄中有檔案,就表示您正在使用區段式佈景主題。非區段式佈景主題是在 2016 年 10 月前發佈,且在區段目錄中沒有檔案。
如果您使用的是區段式佈景主題,請按一下「區段式佈景主題」按鈕,並依照說明進行操作。如果您使用的是較舊的非區段式佈景主題,請按一下「非區段式佈景主題」按鈕,並依照說明進行操作。
此頁面上
移除作者姓名
若要移除網誌作者的姓名,您必須在 blog.liquid
範本和 article-template.liquid
範本中編輯 Liquid。如果您使用 Boundless,則必須在 blog.liquid
範本和 article.liquid
範本中編輯 Liquid。
在 Shopify 管理介面 ,前往「線上商店」>「佈景主題」。
找到要編輯的佈景主題,按一下「...」按鈕以開啟動作選單,然後點擊「編輯程式碼」。
在 Shopify 應用程式中,點一下「商店」。
在銷售管道畫面上,點一下「線上商店」。
點一下「管理佈景主題」。
找到要編輯的佈景主題,按一下「...」按鈕以開啟動作選單,然後點擊「編輯程式碼」。
在 Shopify 應用程式中,點一下「商店」。
在銷售管道畫面上,點一下「線上商店」。
點一下「管理佈景主題」。
找到要編輯的佈景主題,按一下「...」按鈕以開啟動作選單,然後點擊「編輯程式碼」。
在「範本」資料夾中,點擊「
blog.liquid
」。使用 PC 上的
ctrl
+F
,或 Mac 上的command
+F
,找到此 Liquid 標籤並將其刪除:
{{ article.author }}
For **Simple** and **Supply**, the author and date share the same liquid tag. To remove both, use `ctrl` + `F` on a PC or `command` + `F` on a Mac to locate this Liquid tag and delete it:
{{ 'blogs.article.author_on_date_html' | t: author: author, date: date }}
If you want to keep only the date, then replace the code above with:
{{ date }}
點擊「儲存」。
在「區段」資料夾中,點擊「
article-template.liquid
」。在 Boundless 的「範本」資料夾中,點擊「article.liquid
。使用 PC 上的
ctrl
+F
,或 Mac 上的command
+F
,找到此 Liquid 標籤並將其刪除:
{{ article.author }}
For **Simple** and **Supply**, the article author and article date share the same liquid tag. To remove both, use `ctrl` + `F` on a PC or `command` + `F` on a Mac to locate this Liquid tag and delete it:
{{ 'blogs.article.author_on_date_html' | t: author: author, date: date }}
If you want to keep only the date, then replace the code above with:
{{ date }}
- 點擊「儲存」。