• 首页
  • 获客
  • 店铺
    小红书店铺 让内容种草成为最佳导购 微信小程序 用社交电商抢占华人流量 主题模板 100+行业模版
  • 解决方案
    同城门店解决方案
    行业解决方案
    零售业电商解决方案 NEW

    实现全域经营,线上线下相互引流

    母婴行业解决方案

    面向母婴商家提供完善电商经营方案

    服务业预约解决方案 NEW

    数字化门店经营,翻倍到店客流

    鲜花礼品行业解决方案

    灵活自提与配送,解决交付难题

    同城配送解决方案

    突破时间和范围,实现订单增量

    服装首饰行业解决方案

    多渠道卖货,门店、电商同步做

    宠物行业解决方案

    轻松引流到店,提升拉新和复购

  • 价格
  • 活动
  • 调试按钮
登录
中文
English
  • 首页
  • 获客
  • 店铺
    • 小红书店铺
    • 微信小程序
    • 主题模板
  • 解决方案
    • 同城门店解决方案
    • 零售业电商解决方案
    • 服务业预约解决方案
    • 同城配送解决方案
    • 行业解决方案
    • 母婴行业解决方案
    • 鲜花礼品行业解决方案
    • 服装首饰行业解决方案
    • 宠物行业解决方案
  • 价格
  • 登录
  1. 头条博客
  2. 独立站
  3. 在页面上突出展现产品系列的子集合备注名称假

在页面上突出展现产品系列的子集合备注名称假

2022-05-31 22:25:34

在页面上突出展现产品系列的子集合

备注名称

假如您应用Shopify的完全免费模板,您可以联络Shopify适用精英团队得到有关此实例教程的协助。此实例教程必须15分鐘的制定时长。若要掌握详细信息,客户程序Supportforthemes。

备注名称

此自定义用以复古时尚Shopify模板,不适感用以“OnlineStore2.0”模板。

寻找您的模板构架版本号

探寻“OnlineStore2.0”模板自定义

您可以利用编写模板代码来在自定义页面上突出展现产品系列的子集合。本实例教程详细介绍怎样建立新的页面模板,及其怎么使用菜单栏来分派要展现的产品系列。

全部Shopify店铺都是有一个产品系列列表页面(坐落于URLwww.mystore.com/collections),该页面表明店铺中的全部产品系列。做为本实例教程的代替方式,您可以编写产品系列列表页面,以仅表明优选的产品系列一部分。

建立新的页面模板

在Shopify后台管理中,转到在线商店模板。

寻找您要编写的模板,随后点一下实际操作编写代码。

在Templates文件目录中,点一下加上新模板。

为名叫list-collections的页面建立新模板。

提醒:Supply模板附加一个事先搭建的可以用page.list-collections文档。

删掉新page.list-collections文档中的目前代码。寻找下面的模板代码,拷贝该代码并将其黏贴到您的page.list-collections文档中。

点一下储存。

挑选您的模板

此自定义设定的代码因您的模板而异。点一下模板的相匹配按键,随后将代码拷贝并粘帖到您的page.list-collections文档中:

Boundless

Brooklyn

Debut

Minimal

Narrative

Simple

Venture

Boundless的代码

拷贝代码。

liquid{%comment%}Featuringcollectionsonapageusingamenuhttps://shopify-dev.com/tutorials/feature-a-subset-of-collections-on-a-page{%endcomment%}{%-assigngrid_item_width=small--one-halfmedium--one-thirdlarge-up--one-quarter-%}{%-caselinklists[page.handle].links.size-%}{%-when2-%}{%-assigngrid_item_width=medium-up--one-half-%}{%-when3-%}{%-assigngrid_item_width=small--one-halfmedium-up--one-third%}{%-else-%}{%-assigngrid_item_width=small--one-halfmedium--one-thirdlarge-up--one-quarter%}{%-endcase-%}divclass=page-widthpage-containerheaderh1{{page.title}}/h1/headerdivclass=rterte--indented-images{{page.content}}/divdivclass=gridgrid--no-gutterscollection-grid{%-forlinkinlinklists[page.handle].links-%}{%-iflink.type==collection_link-%}{%-assignfeatured=link.object.handle-%}{%-includecollection-grid-item,collection:collections[featured]-%}{%-endif-%}{%-endfor-%}/div/div

将代码黏贴到page.list-collections文档中。

Shopify商家官方网站全文详细信息:

Featureasubsetofcollectionsonapage

Note

IfyouuseafreethemefromShopify,thenyoumightbeabletocontactShopifySupportforhelpwiththistutorial.Itrequires15minutesofdesigntime.Tolearnmore,refertoSupportforthemes.

Note

ThiscustomizationisforvintageShopifythemes,anddoesntapplytoOnlineStore2.0themes.

Findoutyourthemesarchitectureversion

ExploreOnlineStore2.0themecustomizations

Youcanfeatureasubsetofcollectionsonacustompagebyeditingyourthemecode.Thistutorialshowsyouhowtocreateanewpagetemplateandassigncollectionstoshowbyusingamenu.



AllShopifystoreshaveacollectionslistpageattheURLwww.mystore.com/collectionsthatshowsallofthecollectionsinthestore.Asanalternativetothistutorial,youcanedityourcollectionslistpagetoshowonlyaselectionofyourcollections.

Createyournewpagetemplate

FromyourShopifyadmin,gotoOnlineStoreThemes.

Findthethemeyouwanttoedit,andthenclickActionsEditcode.

IntheTemplatesdirectory,clickAddanewtemplate.

Createanewtemplateforpagecalledlist-collections.

Tip

TheSupplythemecomeswithapre-builtpage.list-collectionsfilealreadyavailable.

Deletetheexistingcodeinyournewpage.list-collectionsfile.Findyourthemecodebelowandcopyandpastethecodeinyourpage.list-collectionsfile.

ClickSave.

Selectyourtheme

Thecodeforthiscustomizationvariesdependingonyourtheme.Clickthebuttonforyourthemebeforecopyingandpastingitintoyourpage.list-collectionsfile:

Boundless

Brooklyn

Debut

Minimal

Narrative

Simple

Venture

CodeforBoundless

Copythecode.

liquid{%comment%}Featuringcollectionsonapageusingamenuhttps://shopify-dev.com/tutorials/feature-a-subset-of-collections-on-a-page{%endcomment%}{%-assigngrid_item_width=small--one-halfmedium--one-thirdlarge-up--one-quarter-%}{%-caselinklists[page.handle].links.size-%}{%-when2-%}{%-assigngrid_item_width=medium-up--one-half-%}{%-when3-%}{%-assigngrid_item_width=small--one-halfmedium-up--one-third%}{%-else-%}{%-assigngrid_item_width=small--one-halfmedium--one-thirdlarge-up--one-quarter%}{%-endcase-%}divclass=page-widthpage-containerheaderh1{{page.title}}/h1/headerdivclass=rterte--indented-images{{page.content}}/divdivclass=gridgrid--no-gutterscollection-grid{%-forlinkinlinklists[page.handle].links-%}{%-iflink.type==collection_link-%}{%-assignfeatured=link.object.handle-%}{%-includecollection-grid-item,collection:collections[featured]-%}{%-endif-%}{%-endfor-%}/div/div

Pastethecodeintothepage.list-collectionsfile.

文章由来:Shopify商家官方网网站


部分文章来源于网络,如有侵权,请联系 caihong@youzan.com 删除。

标签:

相关文章

  • 农产品冷链物流要求经营规模大
  • 亚马逊上的iPhone产品将于1月4日被封禁
  • eBay和亚马逊服务平台中卖这11种产品盈利高
  • 农产品营销不会再限于时长和地区
  • 活性碳自热检测报告,自发热实验,产品出口

热门标签

评论

    添加优质配图将会得到更多人回答,媒体大小小于2M,建议尺寸:200x200

评论提交成功

评论有以下违规词汇

删除成功

评论

确定删除此评论吗

  • 未读列表
  • 已读列表

消息类型标题

2021-08-24 12:45

消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容消息详细内容

做华人电商生意 找 AllValue

AllValue
AllValue
首页
商家服务
价格
产品
产品
AllValue 营销版
AllValue 店铺版
Tapget AI
关于我们
关于我们
博客
品牌故事
开发者中心
官方账号
官方账号
邮箱:info@AllValue.com

AllValue公众号

加入华人社群

中文
中文
English

做华人电商生意 找 AllValue

用户协议 隐私声明

©2025 allvalue.com Rights Reserved| 浙ICP备2020040621号

Youzan Technology LLC. 200 Spectrum Center Drive, Suite 300, Office 4062, Irvine, CA 92618