Gutenberg WordPress (Part 12): How to Create Responsive Post List Page & Gallery

create responsive post list
SHARES

After successfully implementing the method to create responsive client logos, the final step to make the homepage mobile-friendly is to create responsive post list and gallery sections.

The List Post section displays a list of blog posts, while the Gallery section serves as a place to display appealing images for users.

To proceed with this step, it is assumed that you have already practiced the tutorial on how to create the post section and gallery section on the homepage. If you have successfully done that, follow the steps below!

Disclaimer:
The List Post we created earlier is already responsive. However, we will learn how to customize the post list and update a single post. Meanwhile, the Gallery still requires responsive adjustments.

Step 1: Configure Post List Components

In this first step, the configuration of the List Post components focuses on editing the Post Title block and the Categories block with the desired colors. From here, you can also explore other components.

To begin, please access the WP Admin page. Then follow these steps:

  1. On the WP Admin page, click on the Pages menu > select the Homepage.
    create responsive post list
  2. Open the List View on the left side and the Settings on the right side. Therefore, the configuration will be easier.
    create responsive post list
  3. Select the Group block that contains the list post.
    create responsive post list
  4. Open the Post Title block > go to the Settings section, and click on Style. Change the Link color according to your needs. We used the color 345C00.
    create responsive post list
  5. Repeat the same steps for the Categories block.
    create responsive post list

Step 2: Update Single Posts

Next, you need to update the title and featured image that were generated by FakerPress when you practiced the tutorial for creating a simple page, especially the creation of the header.

  1. Access the WP Admin page and click on the Posts menu > select one of the single posts that you want to edit.
    how to create responsive post list
  2. Modify the Post title section > in the Settings section, scroll down to the Featured image and click on Replace image.
    how to create responsive post list
  3. Choose Upload files > click on Select Files > upload the dummy featured image that we have provided over here.
    how to create responsive post list
  4. Select the desired image > enter the Alt Text and Title for the image > click on Set featured image.
    how to create responsive post list
  5. In the Settings section, scroll up > click on Categories > click on Add New Category to add a category. You can add categories as needed. This feature is used to group content.
    how to create responsive post list
  6. Once done, click on Update.
  7. Repeat the same steps for all your single posts.

Once you have updated all the single posts, you can view them on the front-end. Here is the final result.

how to create responsive post list

Final result of responsive post list section on desktop (left) dan mobile (right).

Step 3: Create Responsive Gallery

Once the post list section is complete, you can proceed to make the gallery section responsive. Here are the steps:

  1. First, you need to remove the previously created block by clicking on the Gallery Widget block > click on the three dots > select Remove Gallery Widget.
    how to create responsive gallery
  2. Next, add a new block below the Gallery heading block > click on [+] and type gallery in the search box > then select the Gallery feature.
    how to create responsive gallery
  3. Click on Upload and select the provided images over here.
    how to create responsive gallery
  4. In the List View on the left, click on the Gallery block > in the toolbar that appears on the heading, click on the size settings > select Full width.
    how to create responsive gallery
  5. In the Settings section, click on Style > under the Dimensions section, click on the three dots > select Padding > set the padding to 1.
    how to create responsive gallery
  6. That’s it! The images in the Gallery will now adapt to the screen used by the user. See the image below for reference:
    how to create responsive gallery

Conclusion

This marks the end of the tutorial on how to create responsive post list and gallery. With this, we have completed the series related to the use of Gutenberg WordPress editor. To start the tutorial from the beginning, you can read about how to create a header.

Creating a webpage using the Gutenberg WordPress editor is still considered basic. Further customization is needed to create a professional-looking page.

If you are looking for an elegant website with excellent functionality and robust security, our development team at Tonjoo can create it for you.

We have experience in building websites for startups to multinational companies. Some examples of clients we have worked with are Hello Health Group and Unilever.

Let’s discuss your website ideas and requirements through Tonjoo’s contact, and we will help make them a reality!


Read related articles about WordPress, WooCommerce, plugins, and other website development topics by Moch. Nasikhun Amin on the Tonjoo’s blog.


Updated on July 18, 2023 by Admin Tonjoo

Lets Work Together!

Create your ideal website with us.