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?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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 useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
Buy me a coffee

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

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 useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
Buy me a coffee

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 useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
Buy me a coffee

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 useful to you. Thanks!

Zygmunt Spray
Squarespace Website Designer
Contact me: https://squarefortytwo.com/ 
🔌Ghost Squarespace Plugins (Referral link)
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.