Xóa tên tác giả khỏi bài viết blog
Trang này được in vào Dec 03, 2023. Để lấy phiên bản hiện tại, vui lòng truy cập https://help.shopify.com/vi/manual/online-store/themes/themes-by-shopify/vintage-themes/customizing-vintage-themes/remove-author-name.
Trên trang này
Xóa tên tác giả
Để xóa tên tác giả blog, bạn cần chỉnh sửa Liquid trong mẫu blog.liquid
và article-template.liquid
của bạn. Nếu đang sử dụng chủ đề Boundless, bạn cần chỉnh sửa Liquid trong mẫu blog.liquid
và article.liquid
của bạn.
Bước:
- Trên trang quản trị Shopify, vào mục Cửa hàng trực tuyến > Chủ đề.
- Tìm chủ đề bạn muốn chỉnh sửa, nhấp vào nút ... để mở menu thao tác, sau đó nhấp vào Chỉnh sửa mã.
- Trong thư mục Mẫu, nhấp vào
blog.liquid
. - Sử dụng
ctrl
+F
trên PC hoặccommand
+F
trên máy Mac để định vị và xóa thẻ Liquid này:
{{ 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 }}
- Nhấp vào Save (Lưu).
- Trong thư mục Mục, nhấp vào
article-template.liquid
. Đối với chủ đề Boundless, trong thư mục Mẫu nhấp vàoarticle.liquid
. - Sử dụng
ctrl
+F
trên PC hoặccommand
+F
trên máy Mac để định vị và xóa thẻ Liquid này:
{{ 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 }}
- Nhấp vào Save (Lưu).
- Trong ứng dụng Shopify, chạm vào nút ….
- Trong phần Sales channels (Kênh bán hàng), nhấn vào Cửa hàng trực tuyến.
- Nhấn vào Manage themes (Quản lý chủ đề).
- Tìm chủ đề bạn muốn chỉnh sửa, nhấp vào nút ... để mở menu thao tác, sau đó nhấp vào Chỉnh sửa mã.
- Trong thư mục Mẫu, nhấp vào
blog.liquid
. - Sử dụng
ctrl
+F
trên PC hoặccommand
+F
trên máy Mac để định vị và xóa thẻ Liquid này:
{{ 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 }}
- Nhấp vào Save (Lưu).
- Trong thư mục Mục, nhấp vào
article-template.liquid
. Đối với chủ đề Boundless, trong thư mục Mẫu nhấp vàoarticle.liquid
. - Sử dụng
ctrl
+F
trên PC hoặccommand
+F
trên máy Mac để định vị và xóa thẻ Liquid này:
{{ 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 }}
- Nhấp vào Save (Lưu).
- Trong ứng dụng Shopify, chạm vào nút ….
- Trong phần Sales channels (Kênh bán hàng), nhấn vào Cửa hàng trực tuyến.
- Nhấn vào Manage themes (Quản lý chủ đề).
- Tìm chủ đề bạn muốn chỉnh sửa, nhấp vào nút ... để mở menu thao tác, sau đó nhấp vào Chỉnh sửa mã.
- Trong thư mục Mẫu, nhấp vào
blog.liquid
. - Sử dụng
ctrl
+F
trên PC hoặccommand
+F
trên máy Mac để định vị và xóa thẻ Liquid này:
{{ 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 }}
- Nhấp vào Save (Lưu).
- Trong thư mục Mục, nhấp vào
article-template.liquid
. Đối với chủ đề Boundless, trong thư mục Mẫu nhấp vàoarticle.liquid
. - Sử dụng
ctrl
+F
trên PC hoặccommand
+F
trên máy Mac để định vị và xóa thẻ Liquid này:
{{ 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 }}
- Nhấp vào Save (Lưu).