• Home
  • Customer Reviews 🎉
  • Work
  • Resources
    • 📗 Blogs
    • 💻 Tutorials
    • 🎥 Youtube Videos
    • 🧰 Recommended Tools and Apps
Let's Talk
  • Home
  • Customer Reviews 🎉
  • Work
  • Resources
    • 📗 Blogs
    • 💻 Tutorials
    • 🎥 Youtube Videos
    • 🧰 Recommended Tools and Apps
  • Home
  • Customer Reviews 🎉
  • Work
  • Resources
    • 📗 Blogs
    • 💻 Tutorials
    • 🎥 Youtube Videos
    • 🧰 Recommended Tools and Apps

studio.leopoldopirela@gmail.com

Contact information
  • Home
  • tutorials
  • Creating a gallery from your b ...
Shape Images
678B0D95-E70A-488C-838E-D8B39AC6841D Created with sketchtool.
ADC9F4D5-98B7-40AD-BDDC-B46E1B0BBB14 Created with sketchtool.
Total Time: 5 -10 mins
Webflow CMS
Intermediate: Intermediate

Creating a gallery from your blog posts using Webflow

Every now and then you will be challenged by Webflow to get something in specific done. With all the tutorials, and libraries of code you are almost able to do it all in Webflow.

A few weeks ago, I was working on a Webflow website for a fashion blogger, and her stuff was really high-end. In this project, she wanted all those photos she has been posted on her blog, to be displayed as a gallery, as so many people want to see her photos in full screen.

So here is what I did to make this happen:

  1. You have to create a CMS collection
  2. Create a new page, entitle it ‘Gallery’ or whatever you want
  3. Add your nav, footer and anything else you need to make it look like the rest of the website
  4. Add a new section – let’s call it Section (please always name your sections and divs properly)
  5. In this section we are going to add a container (div class=Mycontain) or you can use Webflow’s default container
  6. Now we want to create a wrapper for this gallery – So go ahead and do this as another div block
  7. Head over to add element and drop a collection list inside the wrapper. You can make this flex-box, so they can show side-by-side
  8. Choose all your settings from where the collection list will be pulling content from.
  9. Now, Inside of the collection list, let’s drop another div block where we will place this code as a HTML embed
  10. Once you have pasted this code, where you see image, choose the collection item you want to display. And then Group, is so you can group them all together for the lightbox display.

—-if you have multiple images —

  1. Duplicate step 9, and change the code where you have, let’s say image-1 to image 2

You can do this if you have more images as well. Now, you need to edit your CSS so it shows as 3 or 4 columns in desktop, 3 columns on tablet, 2 on a smaller device and most likely 1 column for mobile. Use percentages for this.

Now, I thought that was it, but the lightbox would not display. So I learned that this was because I did not have it any where else on the website. So what I did was to create a new page and add my lightbox element there.

<a class="w-inline-block w-lightbox" href="#">
  <img src="image" />
  <script class="w-json" type="application/json">
    {
      "group": "(your-group-name)", "items": [{
        "_id": "57e0683ebfc7a6d0523235b2",
        "cdnUrl": "(image-field)",
       "type": "image",
       "url": "(image-field)"
      }]
    }
  </script>
</a>

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn
Share on email
Email
2 layouts 1 CMS collection done in Webflow
  • CMS, Webflow
  • February 18, 2021

2 layouts from 1 CMS collection in Webflow

Learn how to create multiple layouts for your pages using only 1 CMS collection.
View this tutorial
Lightbox gallery from a CMS collection using Webflow
  • CMS, Webflow
  • February 16, 2021

Creating a gallery from your blog posts using Webflow

Creating a lightbox gallery from the photos you have posted in your blog posts in webflow!
View this tutorial
webflow wireframe ready to use
  • Webflow
  • February 5, 2021
  • No Comments

Ready to use Wireframe in Webflow

I created a public project that allows you to duplicate an entire wireframe that I used to design and develop my previous website
View this tutorial
building a CMS collection in WordPress no code needed!
  • CMS, WordPress
  • February 4, 2021
  • No Comments

no-code WordPress CMS collection

Creating a CMS collection in WordPress without any code and in just under 10 mins*
View this tutorial
Creating a BG video with dropbox for webflow
  • Styling, Webflow
  • February 4, 2021
  • No Comments

Creating a BG video in Webflow With Dropbox

In this post, I am sharing a quick tip to show how you can use dropbox to host your background videos in Webflow.
View this tutorial
Lets work together

Need to start a design project?

Schedule a 30-mins Call
Or email me studio.leopoldopirela@gmail.com

Copyright © 2021 L & S Company Group Inc. - 💪 Built and Designed by Leopoldo Pirela

  • Terms of Use
  • Privacy Policy

Want more content like this in your inbox? 🖖

Every week, I am sharing the latest tools I am using, deals I have found online, tutorials, and tips to help you improve the look and feel of websites and brands. 👇

I hate spam probably more than most people, so I promise to not send you an insane amount of emails. Only where there is something important to share. Remember, you can also opt-out at any time!