Gutenberg WordPress (Part 10): How to Create Responsive Slider

create responsive slider
SHARES

If you have successfully created responsive header and footer, the next step is to create responsive slider so that your website can adapt to mobile users.

However, before creating a responsive slider, you need to customize your homepage first, including background settings, typography settings, and then proceed to make the slider responsive.

Once you have completed the first three steps, you can proceed to the fourth step, which is configuring the responsive slider. You can follow the table of contents below for guidance.

Step 1: Setting up Homepage

When you open the front-end homepage, you may wonder why the previously created homepage is not appearing. Instead, the display may look similar to this:

how to create responsive slider

The Homepage before it is set up.

In Gutenberg WordPress, the homepage is not set as the default front page because WordPress uses static settings to determine the site’s homepage.

You can set the created homepage as the landing page by following these steps:

  1. Click on the Pages menu > select the Homepage that was created earlier in the WordPress slider tutorial.
    create responsive slider
  2. On the Homepage editor page, click on Settings in the top right corner > click on the Template option > click on Edit template.
    create responsive slider
  3. Click on the text Homepage > open the List View > click on the three dots.
    create responsive slider
  4. Select Remove Heading to delete the text block.
    create responsive slider
  5. Click on Publish > then click Back to exit the template editor.
    create responsive slider
  6. In the WP Admin menu, select Settings > select Reading > under Your homepage displays, choose A static page > for the Homepage option, select Homepage. And lastly, click Save Changes.
    create responsive slider

When you visit the website’s main page, the created Homepage will now appear. The display will be similar to the following:

how to create responsive slider on homepage

Creating responsive slider on the homepage.

Step 2: Background Settings for the Slider (Carousel)

Next, you need to configure the background color for the slider. This setting is optional and does not have a significant impact on the responsive features.

To configure the background, go to the Pages menu > click on the Homepage as you did before. Then follow these steps:

  1. Open the List View > click on the Carousel block.
    how to create responsive slider on homepage
  2. Click on Settings in the top right corner > select Advanced > choose Background.
    how to create responsive slider on homepage
  3. Click on Custom color > change the background color according to your needs.
    how to create responsive slider on homepage

Step 3: Setting Typography on the Slider

Before you create responsive slider, make sure that the typography on the slider is well-set up. To set the typography, do the following steps:

  1. Look at the List View on the left side and click on the Heading of one of the Carousel Single Column blocks > change the heading to H6. In the Settings column, click on Styles > under Typography, select the Small (S) size.
    how to create responsive slider on homepage
  2. Scroll down and click on the + sign in the Dimensions section > choose Margin > Under Letter Case, select Ab, then change the margin size to 4.
    how to create responsive slider on homepage
  3. Modify the text in the heading according to your needs. We filled in Cognitive Bias.
    how to create responsive slider on homepage
  4. In the List View, select the Paragraph block > make the text Bold. In the Settings, click on Styles > change the Typography size to Large (L).
    how to create responsive slider on homepage
  5. Next, change the Margin to 4.
    how to create responsive slider on homepage
  6. Once done, fill in the Paragraph block as needed. We entered the text “Prof. Daniel Kahneman Inaugurated as Professor of Behavioral Economics at University of Caliandra, Beraga”.how to create responsive slider on homepage
  7. Select the Carousel Single Column block that you edited, then click on the three dots > choose Duplicate twice so that you don’t have to make the settings again. The old Carousel Single Column block can be deleted.
    how to create responsive slider on homepage

You can fill in the duplicated second and third sliders. Once done, these sliders can be made responsive.

Step 4: Make the Slider Responsive for Mobile and Tablet

To create responsive slider, follow these steps:

  1. Look at the List View and select the Carousel block > in the Settings section, ensure that the Slides to Show and Slides to Scroll options are set to 1.
    how to create responsive slider on homepage
  2. Next, click on the Tablet icon in the Basic Options > change the Slides to Show and Slides to Scroll to 1. This is the setting for tablet responsiveness.
    how to create responsive slider on homepage
  3. Click on the Mobile icon in the Basic Options > change the Slides to Show and Slides to Scroll to 1. This is the setting for mobile responsiveness.
    how to create responsive slider on homepage
  4. Scroll down and click on the Dot section. Activate all the toggles: Enable Dots, Enable Dots in Tablet, and Enable Dots in Mobile. This setting displays dots at the bottom of the slider.
    how to create responsive slider on homepage

Finally, you can Publish the changes and preview the results on the front-end.

Conclusion

That sums up the tutorial on how to create responsive slider using the Gutenberg editor. Next, you need to make the list of posts and the gallery responsive as well.

Here is a comparison of the homepage’s appearance on mobile, before and after making it responsive. Additionally, you need to make the client logo section responsive.

how to create responsive slider on homepage

However, the website creation process can be time-consuming. Don’t let the task of creating a well-designed website hinder your business.

You can trust your website needs to the Tonjoo Team, a professional software development company with experience in handling both start-up and multinational company websites.

Let’s discuss your ideas and website requirements through our contact information to bring your ideal website to life!


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


Updated on July 28, 2023 by Moch. Nasikhun Amin

Lets Work Together!

Create your ideal website with us.