从网络文章中删除作者的名字
2022-05-26 16:01:01
从网络文章中删除作者的名字
备注名称
假如您应用Shopify的完全免费模板,您可以联络Shopify适用精英团队得到有关此实例教程的协助。此实例教程必须15分鐘的制定时长。若要掌握详细信息,客户程序Supportforthemes。
备注名称
此自定用以复古时尚Shopify模板,不适感用以“OnlineStore2.0”模板。
寻找您的模板构架版本号
探寻“OnlineStore2.0”模板自定
提醒:Debut和Minimal在模板设定中给予删除作者的选择项。浏览模板编辑软件并撤销选定该选择项就可以在“blog”和“文章内容”分区中表明作者。
备注名称:本实例教程的过程将按照您采用的是分区模板或是未分区模板而各有不同。分区模板适用根据拖拽来分配首页的合理布局,未分区模板则不兼容。
假如想掌握您的模板是不是适用分区,请转至模板的编写编码网页页面。假如Sections文件目录中有文档,您则已经应用已分区模板。未分区模板是在2016年10月以前公布的,而且Sections文件目录中并没有文档。
假如您应用已分区模板,请点击Sectionedthemes(已分区模板)按键并根据表明完成实际操作。假如您应用较旧的未分区模板,请点击Non-sectionedthemes(未分区模板)按键并根据表明完成实际操作。
删除作者的名字
若要删除blog作者的名字,您必须编写blog.liquid
和article-template.liquid
模板中的Liquid。假如您采用的是Boundless,则必须编写blog.liquid
和article.liquid
模板中的Liquid。
PC:
在Shopify后台管理中,转到在线商店模板。
寻找要编写的模板,随后点击实际操作编写编码。
在Templates文件夹名称中,点击blog.liquid
。
在电脑上应用ctrl
F
或在Mac上使用command
F
来寻找此Liquid标识并将其删除:
{{article.author}}
ios系统:
在Shopify运用中,轻按店铺。
在营销渠道一部分中,轻按在线商店。
轻触Managethemes(管理方法模板)。
寻找要编写的模板,随后点击实际操作编写编码。
在Templates文件夹名称中,点击blog.liquid
。
在电脑上应用ctrl
F
或在Mac上使用command
F
来寻找此Liquid标识并将其删除:
{{article.author}}
安卓手机系统:
在Shopify运用中,轻按店铺。
在营销渠道一部分中,轻按在线商店。
轻触Managethemes(管理方法模板)。
寻找要编写的模板,随后点击实际操作编写编码。
在Templates文件夹名称中,点击blog.liquid
。
在电脑上应用ctrl
F
或在Mac上使用command
F
来寻找此Liquid标识并将其删除:
{{article.author}}
针对Simple和Supply,作者和日期具备同样的Liquid标识。若要删除这两项具体内容,请在电脑上应用ctrl
F
或在Mac上使用command
F
来寻找此Liquid标识并将其删除:
{{blogs.article.author_on_date_html|t:author:author,date:date}}
假如只想要保存日期,请将上边编码更换为:
{{date}}
点击储存。
在Sections文件夹名称中,点击article-template.liquid
。针对Boundless,请在Templates文件夹名称中点击article.liquid
。
在电脑上应用ctrl
F
或在Mac上使用command
F
来寻找此Liquid标识并将其删除:
{{article.author}}
针对Simple和Supply,文章内容作者和文章日期具备同样的Liquid标识。若要删除这两项具体内容,请在电脑上应用ctrl
F
或在Mac上使用command
F
来寻找此Liquid标识并将其删除:
{{blogs.article.author_on_date_html|t:author:author,date:date}}
假如只想要保存日期,请将上边编码更换为:
{{date}}
点击储存。
Shopify商家官方网站全文详细信息:
Removetheauthor’snamefromblogposts
Note
IfyouuseafreethemefromShopify,thenyoumightbeabletocontactShopifySupportforhelpwiththistutorial.Itrequires15minutesofdesigntime.Tolearnmore,refertoSupportforthemes.
Note
ThiscustomizationisforvintageShopifythemes,anddoesntapplytoOnlineStore2.0themes.
Findoutyourthemesarchitectureversion
ExploreOnlineStore2.0themecustomizations
Tip
DebutandMinimalhavetheoptiontoremovetheauthorinthethemesettings.VisitthethemeeditorandunchecktheoptiontoshowtheauthorinboththeBlogandArticlesections.
Note:Thestepsforthistutorialdifferdependingonwhetheryouareusingasectionedoranon-sectionedtheme.Asectionedthemeletsyoudraganddroptoarrangethelayoutofyourhomepage,andanon-sectionedthemedoesnt.
Tofigureoutwhetheryourthemesupportssections,gotothethemesEditcodepage.IftherearefilesintheSectionsdirectory,youareusingasectionedtheme.Non-sectionedthemeswerereleasedbeforeOctober2016,anddonothavefilesintheSectionsdirectory.
Ifyouareusingasectionedtheme,clicktheSectionedthemesbuttonandfollowtheinstructions.Ifyouareusinganolder,non-sectionedtheme,clicktheNon-sectionedthemesbuttonandfollowtheinstructions.
Removetheauthorsname
Toremovetheblogauthorsname,youwillneedtoedittheLiquidinyour
blog.liquid
andyourarticle-template.liquid
templates.IfyouareusingBoundless,youwillneedtoedittheLiquidinyourblog.liquid
andarticle.liquid
templates.PC:
FromyourShopifyadmin,gotoOnlineStoreThemes.
Findthethemeyouwanttoedit,andthenclickActionsEditcode.
IntheTemplatesfolder,click
blog.liquid
.Use
ctrl
F
onaPCorcommand
F
onaMactolocatethisLiquidtaganddeleteit:{{article.author}}
iPhone:
FromtheShopifyapp,tapStore.
IntheSaleschannelssection,tapOnlineStore.
TapManagethemes.
Findthethemeyouwanttoedit,andthenclickActionsEditcode.
IntheTemplatesfolder,click
blog.liquid
.Use
ctrl
F
onaPCorcommand
F
onaMactolocatethisLiquidtaganddeleteit:{{article.author}}
Android:
FromtheShopifyapp,tapStore.
IntheSaleschannelssection,tapOnlineStore.
TapManagethemes.
Findthethemeyouwanttoedit,andthenclickActionsEditcode.
IntheTemplatesfolder,click
blog.liquid
.Use
ctrl
F
onaPCorcommand
F
onaMactolocatethisLiquidtaganddeleteit:{{article.author}}
ForSimpleandSupply,theauthoranddatesharethesameliquidtag.Toremoveboth,use
ctrl
F
onaPCorcommand
F
onaMactolocatethisLiquidtaganddeleteit:{{blogs.article.author_on_date_html|t:author:author,date:date}}
Ifyouwanttokeeponlythedate,thenreplacethecodeabovewith:
{{date}}
ClickSave.
IntheSectionsfolder,click
article-template.liquid
.ForBoundless,intheTemplatesfolder,clickarticle.liquid
.Use
ctrl
F
onaPCorcommand
F
onaMactolocatethisLiquidtaganddeleteit:{{article.author}}
ForSimpleandSupply,thearticleauthorandarticledatesharethesameliquidtag.Toremoveboth,use
ctrl
F
onaPCorcommand
F
onaMactolocatethisLiquidtaganddeleteit:{{blogs.article.author_on_date_html|t:author:author,date:date}}
Ifyouwanttokeeponlythedate,thenreplacethecodeabovewith:
{{date}}
ClickSave.
文章内容由来:Shopify商户官方网站
部分文章来源于网络,如有侵权,请联系 caihong@youzan.com 删除。