Webswool Posted November 17, 2020 Share Posted November 17, 2020 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
tuanphan Posted November 17, 2020 Share Posted November 17, 2020 Which order you want? 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
Webswool Posted November 17, 2020 Author Share Posted November 17, 2020 @tuanphan Ready to Bake Pastas Weekend Specials Desserts Red Wine White Wine Prosecco & Champagne Spirits Link to comment
Webswool Posted November 18, 2020 Author Share Posted November 18, 2020 @creedon I've followed a few threads where you've solved this issue for people - if you had a moment to look over this I'd really appreciate it 🙂 Link to comment
tuanphan Posted November 18, 2020 Share Posted November 18, 2020 Which order for "All"? 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
Webswool Posted November 18, 2020 Author Share Posted November 18, 2020 Hi @tuanphan - if ALL could be at the top please! Link to comment
tuanphan Posted November 18, 2020 Share Posted November 18, 2020 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
Webswool Posted November 18, 2020 Author Share Posted November 18, 2020 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
tuanphan Posted November 18, 2020 Share Posted November 18, 2020 I see mobile shop page has long content. Do you want change to 2 products/row or consider adding a back to top button. 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
Webswool Posted November 18, 2020 Author Share Posted November 18, 2020 2 hours ago, tuanphan said: I see mobile shop page has long content. Do you want change to 2 products/row or consider adding a back to top button. 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. Link to comment
tuanphan Posted November 22, 2020 Share Posted November 22, 2020 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.