Jump to content

Stacking store categories on mobile

Recommended Posts

  • Replies 4
  • Views 1.4k
  • Created
  • Last Reply
Posted
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 (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted

Hi @bangank36. Thanks for the proposed code! That could work but was thinking of something simpler like the attached where "By Creator" just carries down to a second line centered. 

Swadoh-Collection-Nav-Edit.jpg

Posted

@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!)

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.