Jump to content

[Share] Summary Block Wall layout to 3 columns on Mobile

Recommended Posts

Posted

To change Summary Block - Wall layout to 3 columns on mobile, you can follow these
#1. First, find Summary Block ID.

image.png.b0040ff11f69afeae83f800ce583ca9e.png

#2. Use this code to Custom CSS box

@media screen and (max-width:767px) {
  #block-yui_3_17_2_1_1731577451920_10887 {
      .summary-item-list {
          columns: 3;
          column-gap: 0;
          height: auto!important;
          display: block!important;
          padding: 0 5px;
      }
     .summary-item {
          position: relative!important;
          transform: none!important;
          width: 100%!important;
          display: block;
          padding: 5px!important;
          box-sizing: border-box;
          height: auto !important;
          top: unset !important;
      }

     .summary-item img {
          height: 100% !important;
          width: 100%!important;
          position: static !important;
      }
  }
}

image.thumb.png.1cae5203a13211ca3512bda5d961ac09.png

#3. If you want to apply this to all Summary Blocks (Wall layout), use this new CSS code

@media screen and (max-width:767px) {
  div.summary-v2-block[data-block-json*="autocolumns"] {
      .summary-item-list {
          columns: 3;
          column-gap: 0;
          height: auto!important;
          display: block!important;
          padding: 0 5px;
      }
     .summary-item {
          position: relative!important;
          transform: none!important;
          width: 100%!important;
          display: block;
          padding: 5px!important;
          box-sizing: border-box;
          height: auto !important;
          top: unset !important;
      }

     .summary-item img {
          height: 100% !important;
          width: 100%!important;
          position: static !important;
      }
  }
}

image.thumb.png.09e1c5cc0377a3de7f4e5c68382e334e.png

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

  • Replies 0
  • Views 46
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

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


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