Jump to content

1 column Summary block layout on mobile only

Recommended Posts

Add to Design > Custom CSS > Then save & reload the site

@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1652790822955_18965 .summary-item {
    display: flex;
    flex-direction: column;
    width: 100% !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
10 hours ago, tuanphan said:

Add to Design > Custom CSS > Then save & reload the site

@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1652790822955_18965 .summary-item {
    display: flex;
    flex-direction: column;
    width: 100% !important;
}
}

 

hey looks great thanks, but can add margin from read more link  to thumbnail?

 
Link to comment
On 5/25/2022 at 6:35 PM, yogap said:

hey looks great thanks, but can add margin from read more link  to thumbnail?

 

Use this new code

@media screen and (max-width: 767px) {
    div#block-yui_3_17_2_1_1652790822955_18965 .summary-item {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        margin-bottom: 50px !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
  • Susana_SQSP changed the title to 1 column Summary block layout on mobile only
  • 7 months later...
On 5/25/2022 at 1:29 PM, tuanphan said:

Add to Design > Custom CSS > Then save & reload the site

@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1652790822955_18965 .summary-item {
    display: flex;
    flex-direction: column;
    width: 100% !important;
}
}

 

Hey, this piece of code has worked great for me too but I was wondering if it's possible to restrict the summary block on mobile to also be 1 item tall? As opposed to multiple items stacked on top of each other. Thanks!

Link to comment
On 1/17/2023 at 6:19 AM, KLharvey said:

Hey, this piece of code has worked great for me too but I was wondering if it's possible to restrict the summary block on mobile to also be 1 item tall? As opposed to multiple items stacked on top of each other. Thanks!

You mean show slider with 1 item/row?

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
  • 2 months later...
  • 2 weeks later...
On 4/18/2023 at 4:56 AM, tuanphan said:

Can you share link to page where you use summary? We can check easier

Sorry Tuanphan, I just now saw your reply.

https://www.rowac.com

I disabled the carousel in mobile view so that they're just stacked on top of each other. It would be nice to have the carousel working in mobile with just one product visible at a time.

Link to comment
On 4/29/2023 at 6:24 PM, deets87 said:

Sorry Tuanphan, I just now saw your reply.

https://www.rowac.com

I disabled the carousel in mobile view so that they're just stacked on top of each other. It would be nice to have the carousel working in mobile with just one product visible at a time.

You mean this?

image.thumb.png.32f8e43a3f777ffd1c221d30acdf2f27.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!)

Link to comment
  • 4 months later...
On 9/29/2023 at 5:49 PM, dome23 said:

Hi all, 
I have tried applying the CSS code but for some reason, it won't apply. Could there be a CSS conflict? https://www.klimabevaegelsen.dk/

Use this code then save & reload the page

@media screen and (max-width: 767px) {
    div#block-644a36011b316793a47bd3c3 .summary-item {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        margin-bottom: 50px !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

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.