從網誌文章移除作者姓名
此頁面列印時間為 Dec 03, 2023。如須最新版本,請至 https://help.shopify.com/zh-TW/manual/online-store/themes/themes-by-shopify/vintage-themes/customizing-vintage-themes/remove-author-name。
此頁面上
移除作者姓名
若要移除網誌作者的姓名,您必須在 blog.liquid
範本和 article-template.liquid
範本中編輯 Liquid。如果您使用 Boundless,則必須在 blog.liquid
範本和 article.liquid
範本中編輯 Liquid。
步驟如下:
- 在 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 }}
- 點擊「儲存」。
- 在 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 }}
- 點擊「儲存」。
- 在 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 }}
- 點擊「儲存」。