Jump to content

Changing the order of categories in Shop

Recommended Posts

Hello,

What CSS code can i use to change the order of my categories? I have 6 categories but default orders them alphabetically= "Tout", "Accessoires", "Balade", "Cadeau de naissance", "Sommeil", "Toilette". I dont know anything about coding so if i can get a step by step guide would gladly appreciate it! The theme is Magnolia. 

Thanks in advance,

T. 

Link to comment
  • Replies 4
  • Views 646
  • Created
  • Last Reply
23 hours ago, Tinasor said:

hi @tuanphan updated the domain and its now www.noadecajou.com and password is noadecajou1 

FOr future members

/* Reorder category nav */
body#collection-5ecd67a42dd571390cb3fd4c {
  @media screen and (min-width:641px) {
      .ProductList-filter-list {
    display: flex;
    justify-content: center;
}
    /* Toilette */
.ProductList-filter-list>li:nth-child(6) {
  margin-right: 48px;
	}
  }
  @media screen and (max-width:640px) {
    .ProductList-filter-dropdownToggle-checkbox:checked~.ProductList-filter-list {
    display: flex;
    flex-direction: column;
}
  }
/* Tout */
.ProductList-filter-list>li:nth-child(1) {
    order: 1;
}
/* Accessoires */
.ProductList-filter-list>li:nth-child(2) {
    order: 1;
}
/* Balade */
.ProductList-filter-list>li:nth-child(3) {
    order: 3;
}
/* Sommeil */
.ProductList-filter-list>li:nth-child(5) {
    order: 4;
}
/* Toilette */
.ProductList-filter-list>li:nth-child(6) {
    order: 5;
}
  /* Cadeau de naissance*/
.ProductList-filter-list>li:nth-child(4) {
    order: 6;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.