從網誌文章移除作者姓名

提示:DebutMinimal 可以選擇在佈景主題設定中移除作者。請前往佈景主題編輯器,並取消勾選「在網誌和文章區段同時顯示作者」的選項。

備註:此教學課程的步驟會因您使用的是區段式非區段式佈景主題而有所不同。區段式佈景主題可供您拖放以安排首頁的版面配置,而非區段式佈景主題則無法如此執行此操作。

若要確定您的佈景主題是否支援區段,請前往佈景主題的「編輯程式碼」頁面。如果區段目錄中有檔案,就表示您正在使用區段式佈景主題。非區段式佈景主題是在 2016 年 10 月前發佈,且在區段目錄中沒有檔案。

如果您使用的是區段式佈景主題,請按一下「區段式佈景主題」按鈕,並依照說明進行操作。如果您使用的是較舊的非區段式佈景主題,請按一下「非區段式佈景主題」按鈕,並依照說明進行操作。

此頁面上

移除作者姓名

若要移除網誌作者的姓名,您必須在 blog.liquid 範本和 article-template.liquid 範本中編輯 Liquid。如果您使用 Boundless,則必須在 blog.liquid 範本和 article.liquid 範本中編輯 Liquid。

  1. 在「範本」資料夾中,點擊「blog.liquid」。

  2. 使用 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 }}
  1. 點擊「儲存」。

  2. 在「區段」資料夾中,點擊「article-template.liquid」。在 Boundless 的「範本」資料夾中,點擊「article.liquid

  3. 使用 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 }}
  1. 點擊「儲存」。

準備好開始透過 Shopify 銷售商品了嗎?

免費試用