Jump to content

Re-ordering shop categories BEDFORD

Recommended Posts

Site URL: https://gratolondon.com/shop-products

Hello peeps.

Trying to re-order the categories in this online shop but really struggling to use the right target. This is my first time working with Bedford (I'm a Brine girl...) so it's been a learning curve anyway.

I feel like I've tried every single suggestion on this forum and so far, NONE have worked. Anyone know how to target the category types in Bedford?? @tuanphan I know you've done 9488493946389463 guides on this particular topic but so far can't find one that works for me.

Thanks!

Sammi x 

Link to comment
  • Replies 10
  • Views 469
  • Created
  • Last Reply
4 hours ago, Webswool said:

Hi @tuanphan - if ALL could be at the top please!

Add to Home > Design > Custom CSS


/* category reorder */
ul.category-nav-links {
    display: flex;
    flex-direction: column;
}
/* Shop products */
ul.category-nav-links>li:nth-child(1) {
    order: 1;
}
/* empty item */
ul.category-nav-links>li:nth-child(2) {
    order: 2;
}
/* All */
ul.category-nav-links>li:nth-child(3) {
    order: 3;
}
/* ready to bake pastas */
ul.category-nav-links>li:nth-child(6) {
    order: 4;
}
/* weekend specials */
ul.category-nav-links>li:nth-child(9) {
    order: 5;
}
/* desserts */
ul.category-nav-links>li:nth-child(4) {
    order: 6;
}
/* red wine */
ul.category-nav-links>li:nth-child(7) {
    order: 7;
}
/* white wine */
ul.category-nav-links>li:nth-child(10) {
    order: 8;
}
/* prosecco champagne */
ul.category-nav-links>li:nth-child(5) {
    order: 9;
}
/* spirits */
ul.category-nav-links>li:nth-child(8) {
    order: 10;
}

 

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
3 minutes ago, tuanphan said:

Add to Home > Design > Custom CSS



/* category reorder */
ul.category-nav-links {
    display: flex;
    flex-direction: column;
}
/* Shop products */
ul.category-nav-links>li:nth-child(1) {
    order: 1;
}
/* empty item */
ul.category-nav-links>li:nth-child(2) {
    order: 2;
}
/* All */
ul.category-nav-links>li:nth-child(3) {
    order: 3;
}
/* ready to bake pastas */
ul.category-nav-links>li:nth-child(6) {
    order: 4;
}
/* weekend specials */
ul.category-nav-links>li:nth-child(9) {
    order: 5;
}
/* desserts */
ul.category-nav-links>li:nth-child(4) {
    order: 6;
}
/* red wine */
ul.category-nav-links>li:nth-child(7) {
    order: 7;
}
/* white wine */
ul.category-nav-links>li:nth-child(10) {
    order: 8;
}
/* prosecco champagne */
ul.category-nav-links>li:nth-child(5) {
    order: 9;
}
/* spirits */
ul.category-nav-links>li:nth-child(8) {
    order: 10;
}

 

Thank you so much @tuanphan!!! Hugely appreciate this!

Link to comment
On 11/19/2020 at 12:05 AM, Webswool said:

Ohh good idea! I think I could pop a 'back to top' button in there as I've used that before. 

I'm not sure how to stipulate 2 rows on a mobile device though.

Add to Home > Design > Custom CSS

@media screen and (max-width:700px) {
div#productList {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-column-gap: 5px;
}
}

 

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.