從網誌文章移除作者姓名
此頁面列印時間為 May 13, 2024。如須最新版本,請至 https://help.shopify.com/zh-TW/manual/online-store/themes/themes-by-shopify/vintage-themes/customizing-vintage-themes/remove-author-name。
備註
此教學課程的步驟會因您使用的是區段式 或非區段式 佈景主題而有所不同。區段式佈景主題可供您拖放以安排首頁的版面配置,而非區段式佈景主題則無法如此執行此操作。
若要確定您的佈景主題是否支援區段,請前往佈景主題的「編輯程式碼」 頁面。如果區段 目錄中有檔案,就表示您正在使用區段式佈景主題。非區段式佈景主題是在 2016 年 10 月前發佈,且在區段 目錄中沒有檔案。
如果您使用的是區段式佈景主題,請按一下「區段式佈景主題」 按鈕,並依照說明進行操作。如果您使用的是較舊的非區段式佈景主題,請按一下「非區段式佈景主題」 按鈕,並依照說明進行操作。
移除作者姓名 若要移除網誌作者的姓名,您必須在 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 }}
點擊「儲存 」。