How to use Image Gallery, Video inside Accordion WordPress Block?

Table of Contents

Accordion blocks are an effective way to keep website content organized, making it easier for the viewer to find the information they are looking for. With WordPress accordion blocks, you can include images, galleries and videos to make your content even more engaging.

If you want to use custom content like images, gallery, video etc. apart from the standard text within your accordion, you can do that easily with The Nexter Blocks Accordion block.

To check the complete feature overview documentation of The Nexter Blocks Accordion block, click here.

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

This Accordion block provides two options to add WordPress blocks within the accordion content Editor (Free) and Pattern (Pro).

Let’s see the Editor option first-

First, add the accordion block to the page and then go to the accordion tab, you want to add the content.

From the Content Type choose Editor from the dropdown.

accordion layout content editor

And now you can directly use the WordPress block editor options within the accordion content area. You can use almost any block like image, video, gallery, shortcode and even container block to create unique layouts inside the accordion.

accordion custom content

The second option is the Pattern. In this method, you have to create a Pattern only then you can use it inside the accordion.

In the WordPress block editor, you can save a group of blocks together as a Pattern that can be used many times at different places on your website.

The best part of a pattern is once you make any changes to it, it will change across your site wherever it is used, making it easy to maintain.

This way, you can create complex layouts using any combination of blocks.

Now to make a Pattern once you have the structure ready, select the container that contains your blocks then click on the 3 dots at the end and click on Create Pattern.

accordion layout create pattern setting

Then add the accordion widget to the page, choose Pattern as Content Type, and select your created pattern from the dropdown.

accordion layout select pattern

Alternatively, when you choose the Pattern option, you can also create the Pattern by clicking on the + Create Pattern button as well.

Also check, How to connect a Carousel with Accordion in WordPress.

Still in Doubt? Let’s Assist You

Need Help? Ask AI Bot

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Docs