Jump to content

How can I make the portfolio grid display as the "alternating side by side blog"?

Recommended Posts

21 minutes ago, JLBali said:

Hi!

I would like my portfolio to use the  "alternating side by side blog" appearance with the image on one side and the title of the project on the other. I could not find a way to do that. 

Can you please help me?

Can you share your URL site so I can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

You're welcome to start with this Custom CSS, it may not work perfectly:

.portfolio-grid-basic {
  grid-template-columns:1fr;
}
.portfolio-grid-basic .grid-item .grid-image {
  width:50%;
}
.tweak-portfolio-grid-basic-image-aspect-ratio-11-square .portfolio-grid-basic .grid-image {
  padding-bottom: 50%;
}
.portfolio-grid-basic .grid-item:nth-child(odd) {
  flex-direction: row;
  align-items:center;
  justify-content: space-between;
}
.portfolio-grid-basic .grid-item:nth-child(even) {
  flex-direction: row-reverse;
  align-items:center;
  justify-content: space-between;
}

Let me know when you've added it, and how it looks, and we can try and adjust it.

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

I tried to insert this code in the design css field, but it is not showing the images... could you please help me again? thank you!

.portfolio-grid-basic {
  grid-template-columns:1fr;
}
.portfolio-grid-basic .grid-item .grid-image {
  width:50%;
}
.tweak-portfolio-grid-basic-image-aspect-ratio-11-square .portfolio-grid-basic .grid-image {
  padding-bottom: 50%;
}
.portfolio-grid-basic .grid-item:nth-child(odd) {
  flex-direction: row;
  align-items:center;
  justify-content: space-between;
}
.portfolio-grid-basic .grid-item:nth-child(even) {
  flex-direction: row-reverse;
  align-items:center;
  justify-content: space-between;
}
Link to comment

What page are you trying to apply this to?

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

It doesn't look like you have thumbnail images for these, I see the code there correctly, but it contains no thumbnail image.

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

You are totally right somehow they were taken off when I inserted the code. Now you can see the images. I modified the proportions and now somehow it is not aligned anymore. I was wondering if you could help me make it more similar to the blog on the text side (aligned to the left and with the learn more button). I attach two screenshot

Screenshot 2022-11-28 at 14.23.21.png

Screenshot 2022-11-28 at 14.23.32.png

Link to comment

 Try this:

.portfolio-grid-basic {
  grid-template-columns: 1fr;
}
.portfolio-grid-basic .grid-item .grid-image {
  width: 50%;
}
.tweak-portfolio-grid-basic-image-aspect-ratio-11-square .portfolio-grid-basic .grid-image {
  padding-bottom: 50%;
}
.portfolio-grid-basic .grid-item:nth-child(odd) {
  flex-direction: row;
  align-items: center;
  margin-left: 6vw;
}
.portfolio-grid-basic .grid-item:nth-child(even) {
  flex-direction: row-reverse;
  align-items: center;
  margin-right: 6vw;
}

Give me a thumbs up if this was helpful! 

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

Not yet there, now the title is too near to the picture and it is too small, I also changed something in you code to adjust spacing. Let me know if it is correct!

 

.portfolio-grid-basic {
  grid-template-columns: 1fr;
}
.portfolio-grid-basic .grid-item .grid-image {
  width: 60%;
  margin-bottom:10vw;
}
.tweak-portfolio-grid-basic-image-aspect-ratio-11-square .portfolio-grid-basic .grid-image {
  padding-bottom: 50%;
}
.portfolio-grid-basic .grid-item:nth-child(odd) {
  flex-direction: row;
  align-items: center;
  margin-right: 6vw;
}
.portfolio-grid-basic .grid-item:nth-child(even) {
  flex-direction: row-reverse;
  align-items: center;
  margin-left: 6vw;
}

Link to comment

To change the position of the text next to the image, change the margin-right: 6vw; and margin-left: 6vw; to higher VW values, maybe start at 10vw and increase or decrease to suit your design.

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

Try this:

.portfolio-grid-basic {
  grid-template-columns: 1fr;
}
.portfolio-grid-basic .grid-item .grid-image {
  width: 60%;
  margin-bottom:10vw;
}
.tweak-portfolio-grid-basic-image-aspect-ratio-11-square .portfolio-grid-basic .grid-image {
  padding-bottom: 50%;
}
.portfolio-grid-basic .grid-item:nth-child(odd) {
  flex-direction: row;
  align-items: center;
  margin-right: 4vw;
  .portfolio-text {
    margin-left:4vw;
  }
}
.portfolio-grid-basic .grid-item:nth-child(even) {
  flex-direction: row-reverse;
  align-items: center;
  margin-left: 4vw;
  .portfolio-text {
    margin-right:4vw;
  }
}

 

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

Happy to help! Can you mark my post as the solution and give a thumbs up? 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
  • 10 months later...

@Ziggy, can you help me also, please! I tried to apply your code to my case, but failed. 

I want to display my blog posts pulled in the summary block with 'alternating side by side' design. 
Here, on the Home page, is my summary block, under 'Legutóbbi projektjeink': https://broccoli-kumquat-bs8a.squarespace.com/ (pass: atnif)

And I want to give it the same look as the blog page here: https://broccoli-kumquat-bs8a.squarespace.com/hu/projektek

Can you help me, please?

Thanks in advance

Link to comment

@antasz The code I provided was for a portfolio page not a summary block. It's probably possible to re-use the code for .sqs-block-summary-v2 .summary-item.

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
  • 3 months later...

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.