Jump to content

Stacking store categories on mobile

Recommended Posts

  • Replies 4
  • Views 1.2k
  • Created
  • Last Reply
9 hours ago, ann_nola said:

Site URL: https://bison-apricot-b8el.squarespace.com/

Having trouble getting my store categories to stack on mobile, the last category "By Creator" is currently getting cut off— see screenshot. 

Help with appropriate code solution appreciated. 

Screen Shot 2021-04-26 at 10.09.04 AM.png

do you want it like this

@media screen and (max-width: 640px) {
  .products.collection-content-wrapper .nested-category-children {
       display: none; 
  }
}

@media screen and (max-width: 640px) {
  .tweak-products-nested-category-type-top .products.collection-content-wrapper .nested-category-tree-wrapper {
      display: block;
      float: left;
      min-width: 20px;
      max-width: 300px;
      margin-right: 10px;
  }
}

image.png.c44bb8f267d7fe9f6e919d4caf5c52bf.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

@ann_nola Add to Design > Custom CSS

/* Mobile category nav links */
@media screen and (max-width:767px) {
ul.nested-category-children {
    -ms-flex-wrap: wrap !important;
        flex-wrap: wrap !important;
    -webkit-box-pack: center !important;
        -ms-flex-pack: center !important;
            justify-content: center !important;
}
}

 

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.