Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Re-ordering shop categories BEDFORD


Webswool

Question

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

10 answers to this question

Recommended Posts

  • 0
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.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 0
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
  • 0
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.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...