Jump to content

Amazon Links (allow 2 per row mobile and tablet)

Recommended Posts

  • Replies 9
  • Views 858
  • Created
  • Last Reply
On 8/31/2020 at 9:59 AM, jezo said:

yes, on this page

Add to Home > Design > Custom CSS

@media screen and (max-width:640px) {
/* dog supplemnents */
div#block-yui_3_17_2_1_1598141717845_392243+.row .span-2 {
    width: 50% !important;
    float: left !important;
}
/* Dog Foods */
div#block-yui_3_17_2_1_1525220674265_50443+.row .span-2 {
    width: 50% !important;
    float: left !important;
}
div#block-yui_3_17_2_1_1525220674265_50443+.row .span-2:nth-child(4n+1) {
    clear: left;
}
div#block-yui_3_17_2_1_1598141717845_4784999+.row .span-2 {
    width: 50% !important;
    float: left !important;
}
div#block-yui_3_17_2_1_1598141717845_4791171+.row .span-2 {
    width: 50% !important;
    float: left !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
  • 1 month later...
12 hours ago, LittleEmbers said:

@tuanphanCan you explain how this code works? I'm looking to implement this on my own site but I’m not quite following what you were doing. 2 amazon products per row on mobile devices using the Amazon Blocks. 

site: littleemberslearning.co/amazon-supplies

Add to Home > Design > Custom CSS

@media screen and (max-width:767px) {
div#page-section-5f8075dcf279da660cb02874>.row:nth-child(2)>.col {
    width: 50% !important;
    float: left !important;
}
div#page-section-5f80702036dcbe6d1761f3ee .span-12 .row .col {
    width: 50% !important;
    float: left !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
7 hours ago, tuanphan said:

Add to Home > Design > Custom CSS


@media screen and (max-width:767px) {
div#page-section-5f8075dcf279da660cb02874>.row:nth-child(2)>.col {
    width: 50% !important;
    float: left !important;
}
div#page-section-5f80702036dcbe6d1761f3ee .span-12 .row .col {
    width: 50% !important;
    float: left !important;
}
}

 

What if I combine all my products to be in one page-section, for example, I move all my products to be in "page-section-5f8075dcf279da660cb02874"?

Link to comment
16 hours ago, LittleEmbers said:

What if I combine all my products to be in one page-section, for example, I move all my products to be in "page-section-5f8075dcf279da660cb02874"?

@tuanphanI went ahead and added 12 products to "div#page-section-5f8075dcf279da660cb02874" this morning. How would I get this to be 2 products per row on mobile? Thanks for helping on this.

 

site: littleemberslearning.co/amazon-supplies

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.