Jump to content

Two image columns on mobile

Recommended Posts

  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Add this code to Website Tools (under Not Linked) > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
if (jQuery(window).width() < 767) {
$('div#block-yui_3_17_2_1_1702311304059_54181+.row .span-4:nth-child(2) .image-block').appendTo('div#block-yui_3_17_2_1_1702311304059_54181+.row .span-4:nth-child(1)');
$('div#block-yui_3_17_2_1_1702311304059_54181+.row+.row .span-4 .image-block').appendTo('div#block-yui_3_17_2_1_1702311304059_54181+.row .span-4:nth-child(1)');
  @media screen and (max-width:767px) {
  div#block-yui_3_17_2_1_1702311304059_54181+.row .span-4 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
}div#block-yui_3_17_2_1_1702311304059_54181+.row .span-4 .image-subtitle p {
    font-size: 16px;

then check again on your real mobile


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.