How to Create an Image Accordion in WordPress? (Horizontal & Vertical)

Key Takeaways

  • Nexter Blocks includes the Animated Service Boxes block, which allows users to create vertical and horizontal image accordions in WordPress.
  • Users can set the active slide width for the image accordion between 1 and 15, affecting how much the active slide opens.
  • The Display Button toggle in the Animated Service Boxes block enables users to add a button to the image accordion with customizable text and URL.
Table of Contents

Do you want to create an image accordion in WordPress? An image accordion allows you to display multiple images in a compact, organized way, making it ideal for showcasing galleries or portfolios. The accordion effect adds a creative touch to your website, enhancing its visual appeal and keeping visitors engaged.

With the Animated Service Boxes block from Nexter Blocks, you can easily create vertical and horizontal image accordions in WordPress.

To check the complete feature overview documentation of the Nexter Blocks Animated Service Boxes block, click here.

Requirement  – This block is a part of the Nexter Blocks, make sure it’s installed & activated to enjoy all its powers.

To do this, add the Animated Service Boxes block to the page and follow the steps – 

1. Select Image Accordion from the Main Style section.

Then, from the Style section, you can select a predefined style.

2. From the Orientation section, you have to select the image accordion orientation. Here you’ll find two options –

  • Vertical – To create a vertical image accordion.
  • Horizontal – To create a horizontal image accordion. 

Select the option as per your requirement, let’s select Vertical here.

Then, from the Active Slide section, you can select a particular slide to be active by default or make all the slides equal by selecting Slide 0.

In the Active Slide Width(0-15) section, you can set the active slide width i.e. how much the active slide will open. You can set the value from 1 to 15, where 1 will make all the slide’s widths equal and 15 will set the maximum width for the active slide.

By enabling the Display Button toggle, you can add a button to the image accordion.

When enabled, you can select a button style from the Button Style section.

3. Then in the Service Boxes section, you have to add the content for the image accordion. By default, you’ll find three items, open one item.

You can add a title, subtitle and description in the Title, Sub Title and Description fields as required.

4. Then in the Featured Image section, you have to add an image for the accordion.

You can edit the button text and URL from the Button Text and Button Link fields, respectively. 

Note: Make sure the Display Button toggle is enabled to see the Button Text and Button Link fields.

Following this process, you can edit the other items.

You can click on the +Add Item button to add more accordion items.

You can select the image size from the Image Size dropdown.

Then from the Layout tab, you can manage the vertical and horizontal alignment of the text content of the image accordion, you can also manage the image accordion height as well.

Now you’ll see a beautiful vertical image accordion.

Note: Similarly, you can create a horizontal image accordion by selecting Horizontal from the Orientation

About the Author

Photo of Aditya Sharma CMO of NexterWP
CMO at POSIMYTH Innovations · NexterWP · 7 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordpressThemesElementorn8nAIClaudeAutomationServer

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

What should I do if my image accordion is not displaying correctly?

If your image accordion isn't displaying correctly, first ensure that the Animated Service Boxes block from Nexter Blocks is installed and activated. This block is essential for creating the accordion. Additionally, check that you've selected the correct orientation (vertical or horizontal) and that your images are properly uploaded in the Featured Image section.

Can I use the image accordion for a portfolio showcase?

An image accordion is ideal for showcasing galleries or portfolios, as it allows you to display multiple images in a compact and organized manner. Using the Animated Service Boxes block from Nexter Blocks, you can create both vertical and horizontal layouts, making it flexible for various presentation styles.

What is the best way to set the active slide width in my image accordion?

Setting the active slide width is crucial for visual impact. You can adjust the width from 1 to 15 in the Active Slide Width(0-15) section. A setting of 1 makes all slides equal, while 15 maximizes the active slide's width. Choose a value based on how much emphasis you want to place on the active image.

How do I add more items to my image accordion?

To add more items to your image accordion, click the +Add Item button within the Service Boxes section. This allows you to include additional images and content, enhancing your accordion's functionality and visual appeal. Remember to fill in the Title, Subtitle, and Description fields for each new item.

Are there any limitations when using the Animated Service Boxes block?

The Animated Service Boxes block is designed specifically for use with Gutenberg and does not function as a standalone theme. Ensure you are using Gutenberg as your primary builder. Additionally, while it supports both vertical and horizontal orientations, the design options may be limited to the styles provided within the block.

Last reviewed: April 14, 2026

Related Docs