Demii Posted July 23 Share Posted July 23 (edited) Help Needed. Can someone help me with some code to allow the categories to be always visible on the left or the top (depending on option chosen) of the product listings while scrolling through the products. Allowing the categories to be always visible would allow for easier transition between categories and a more fluid feel to searching. Also subcategories hover dropdown or popup for the categories would help greatly or even some kind of indication that there even is a subcategory because currently there is no visual indication of a subcategory.. Example on my site being, "carvings" category that has 3 subcategories but impossible to tell unless actually clicked on.. no indication beforehand. Anyone that can help i would gratefully appreciate it. https://demgems.co.uk/shop Edited July 24 by Demii Link to comment
CassAggett Posted July 23 Share Posted July 23 Hey Demi, can you please share your website URL? If it's set to private, make sure you share the access password also. This will help to provide code for you. Demii 1 If this helped you, please like or mark my solution as answer so others can scroll to it quickly 👆 Cass Aggett is a Squarespace website designer for go-getting women – no matter what stage of business. WEBSITE • INSTAGRAM Link to comment
Demii Posted July 23 Author Share Posted July 23 https://demgems.co.uk/shop Appreciate you help 🙂 Link to comment
Solution CassAggett Posted July 24 Solution Share Posted July 24 Thanks! Try adding this to your Custom CSS panel - this is just for your desktop when you've got the categories list on the left, as it would be a different code for when it's set to the top: //stick categories desktop// @media only screen and (min-width: 768px) { .products.collection-content-wrapper .nested-category-tree-wrapper { position: sticky; position: -webkit-sticky; top: 10vh; } } Unfortunately there's no way to have the subcategories expand, but one thing you could consider is adding an arrow or other symbol to the end of the categories names that do have a subcategory? So in the categories section, you could rename it from 'Carvings' to 'Carvings ➤' for example. For the mobile view, you might also like to use something like the following, which changes the categories from a horizontal scroll (that's not actually obvious you're supposed to scroll) to a vertical list of categories: //stack categories mobile// @media only screen and (max-width: 767px) { .products.collection-content-wrapper .nested-category-children { flex-direction: column; overflow-x: hidden; } .nested-category-breadcrumb-list-item .breadcrumb-separator { display: none; } } I wouldn't make that one sticky though as it would take up too much screen real estate. Let me know how you go 😊 Demii and tuanphan 1 1 If this helped you, please like or mark my solution as answer so others can scroll to it quickly 👆 Cass Aggett is a Squarespace website designer for go-getting women – no matter what stage of business. WEBSITE • INSTAGRAM Link to comment
Demii Posted July 24 Author Share Posted July 24 Perfect. Thank you so much ❤️ CassAggett 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment