November 10, 2023

Design an Overflowing Image Gallery with GenerateBlocks

Play Video
Tutorial Walkthrough
This video tutorial provides an in-depth walkthrough, and we recommend following along with the video to grasp the concept fully. Below, you'll find a summary of the tutorial, but please note that it may leave out some detailed steps, so watching the video will give you the most comprehensive understanding.

Create an engaging and visually appealing Overflowing Image Gallery on your WordPress site using GenerateBlocks. This layout, inspired by the new Woo.com, serves as a fantastic section divider while showcasing various images in a unique, responsive manner.

Overflowing Image Gallery with GenerateBlocks Preview
Overflowing Image Gallery with GenerateBlocks Preview

Prerequisites

Please make sure you have the following installed and activated:


Creating Your Gallery

Setting Up the Initial Container

  1. Navigate to Pages > Add New to create a new page.
  2. Name your page, for example, “Woo”.
  3. Insert a Container block by typing ‘container’ in the block search.

Configuring the Container

  1. Label your container for organizational purposes in the Advanced > Block Label, e.g., “Section”.
    Label your container
  2. Change the HTML tag to <section> for semantic accuracy.
    Change the HTML tag to section
  3. Add padding to the top and bottom to create space from the header and footer.
    Add padding to the top and bottom

Adding Image Wrappers

  1. Insert a new Container within the section to act as the first row’s wrapper.
  2. Label this container as “Wrapper Row 1” for clarity.
    Adding Image Wrapper

Inserting Images

  1. Add a new Container inside “Wrapper Row 1” for each image and call it “Image Wrapper”.
    Add image wrapper container
  2. Upload and insert your image into the container.
    Upload and insert your image
  3. Duplicate the image wrapper four times.
    Duplicate the image wrapper four times
  4. Change the Layout display from “Default” to “Flex”.
    Change the Layout display from Default to Flex
  5. Set the Wrap to “No Wrap”.
    Set the Wrap to No Wrap
  6. Justify content to be centered.
    Justify content to be centered
  7. Add a column gap of 24 pixels.
    Add a column gap
  8. Select all four image wrappers and adjust the “Min Width” to 40%.
    Select all four image wrappers and adjust the "Min Width"
  9. Select your section container and adjust “Overflow-X” to “Hidden”.
    Select your section container and adjust "Overflow-X" to "Hidden"
  10. Duplicate your Wrapper Row 1 (rename it to Wrapper Row 2).
    Duplicate your Wrapper Row 1
  11. Select the section container and change the following settings:
    • Display: Flex
    • Direction: Column
    • Row Gap: 24 px
      Select the section container and change the following settings

Making It Responsive

  1. Select your two wrappers and adjust the column gap to “1.5 vw”.
    Select your two wrappers and adjust the column gap
  2. Select your section container and match the “1.5 vw” in the Row Gap.
    Select your section container and match the "1.5 vw" in the Row Gap
  3. Test the responsiveness by adjusting the browser window size or using the WordPress preview options.

Supplementary Resources


Overflowing Image Gallery – Conclusion

By following these steps, you’ve created an Overflowing Image Gallery that is both responsive and stylish, without writing a single line of CSS. Experiment with different images and layouts to make your gallery unique.

Required Resources

GenerateBlocks Logo
Free Options
Credit to The Admin Bar
The Admin Bar is a resourceful platform dedicated to WordPress. From insightful videos on optimizing your WordPress tech stack to creative hacks for faster web page creation, the channel is a treasure trove for both beginners and advanced WordPress users.
Visit
Design an Overflowing Image Gallery with GenerateBlocks
Welcome back!
Enter your Helwp credentials to sign in.

No Account yet? Sign Up

My Account
Menu
Give Feedback
Describe your feedback *
Rate Helwp
Share
Facebook
Twitter
LinkedIn
Reddit
Email
WhatsApp
Telegram
Pocket
Report
Problem *
Describe the problem
Want us to reply?
Your E-Mail
Affiliate Disclosure

At Helwp, we’re committed to transparency and honesty. Therefore, we want to inform you that some of the links on our website are affiliate links. This means that, at no additional cost to you, we may earn a small commission if you click through and make a purchase.

We only promote products or services that we genuinely believe in. These affiliate commissions help us to maintain the website and continue to provide you with free, high-quality WordPress content.

If you are interested in how you can support us even further, check out our support page.