Jump to content

Reverse section order on mobile, add column count on desktop

Recommended Posts

Hi - I'm having trouble styling sections & blocks. I've inserted code to do two things:

1. reverse the display order on mobile (using section id)

2. split the text into 2 columns on desktop/laptop (using block id).

The site is https://spinach-crow-ktsp.squarespace.com/publications-speaking

I've inserted this code for the "Publications" section of the page:

@media screen and (max-width:767px){ 
  section[data-section-id="635c34bedeb2fd442065ab8f"]{
.sqs-row{ 
display: flex !important; 
flex-direction: column-reverse !important; 
}
}}

#block-yui_3_17_2_1_1666977167775_361208{
 @media screen and (min-width: 768px){ 
     -webkit-column-count: 2 !important;
     -moz-column-count: 2 !important;
          column-count: 2 !important;
  -webkit-column-gap: 60px !important;
     -moz-column-gap: 60px !important;
          column-gap: 60px !important;
  }}

but it doesn't work (I've checked in Chrome / FF / Safari on Mac desktop, and Safari on iOS). Any ideas are greatly appreciated, as from what I can tell the code and block/section ids seem correct. Site is password-protected with password kralowec. Thanks!

Edited by bgraphicdesign
add page URL
Link to comment

Can you share your website URL and the page that this is happening on?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment

And the password? Thanks!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment

Here's some revised code for columns:

@media screen and (min-width: 768px) { #block-yui_3_17_2_1_1666977167775_361208 .sqs-block-content {
  -webkit-column-count: 2 !important;
     -moz-column-count: 2 !important;
          column-count: 2 !important;
  -webkit-column-gap: 60px !important;
     -moz-column-gap: 60px !important;
          column-gap: 60px !important;
  }
}

What are you wanting to reverse the order of? The sections, so Speaking goes above Publications?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment

Fantastic glad that's working.

If you want Publications above the text then you just need to get rid of the CSS that is swapping the order, easy! Delete this:

@media screen and (max-width:767px){ 
  section[data-section-id="635c34bedeb2fd442065ab8f"]{
.sqs-row{ 
display: flex !important; 
flex-direction: column-reverse !important; 
}
}}

Can you mark my post as the solution and give me a thumbs up?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment

Yes, if you're using the Fluid Engine, you must edit the mobile layout every time you make a change or addition to the page. I don't know why Squarespace don't do better at telling users this.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

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.