Jump to content

How to customize the stack order for mobile based on desktop layout.

Recommended Posts

Site URL: https://www.stockdadsofficial.com/plans

Hi all,

I am a complete amateur who has no knowledge about coding yet. I have been trying to learn but am struggling specifically getting things to show up in order on my mobile site because I had to put them in separate rows on desktop in order for everything to align correctly. Here is what it looks like on desktop in order for the buttons to align I had to make them into separate rows. But because I did this, now all of the buttons show up at the bottom of the page on the mobile view, not each button after each plan like I want it. Can anyone help a rookie out? I uploaded a view of what it looks like on mobile.

Thanks in advance!

The badges are in a row, then the text, then a spacer, then the buttons. If that helps with writing a code.

I found this on another thread but don't know how to customize it for my page. Please help!

@media only screen and (max-width: 640px) {
   #page-56fd63b662cd94b482c67b26 .row .row:nth-child(even) {
       display: table;
   }
   #page-56fd63b662cd94b482c67b26 .row .row:nth-child(even) .col:first-child {
       display: table-footer-group;
   }
}


image.png

image.png

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

This is because of the way the blocks have been "connected". When you place them on the page, each new block can be joined to the block above or the block beside it. This will determine the order when the page width is reduced. I provided a similar answer here which may help:

 

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

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.