How to Add Before/After Image Comparison in WordPress?

Key Takeaways

  • Nexter Blocks offers a Before After block that allows users to add different types of before and after comparison sliders on their WordPress website.
  • The Before After block includes three slider styles: Opacity, Horizontal, and Vertical for visual comparisons.
  • Users can activate the Before After block by navigating to Nexter u2192 Blocks and turning on the toggle for the block name.
  • The Before After block allows customization of the separator line style, width, and color for enhanced visual appeal.
Table of Contents

Adding a before-and-after slider to your website is a great way to showcase product or service transformations. This feature lets your audience visually compare changes, making it an engaging and powerful marketing tool.

With the Before After block from Nexter Blocks, you can easily add different types of before and after comparison sliders on your WordPress website.

Required Setup

  • Make sure the default WordPress Block editor is active. 
  • You need to have the Nexter Blocks plugin installed and activated.
  • This is a Premium block, and you need the PRO version of Nexter Blocks.
  • Make sure the Before After block is activated. To verify this, visit Nexter → Blocks → and search for Before After and activate.

Learn via Video Tutorial

YouTube video

How to activate the Before After Block?

Go to 

  • Nexter Blocks 
  • Search the block name and turn on the toggle.

Nexter Blocks Before After Activation

Key Features

  • Three Slider Styles – You can select from three different before and after slider styles.

How to Use the Before After Block?

Add the Before After block to the page.

Then click on the Design from Scratch button to design the layout from scratch.

before after design type

Note: By clicking on the Import Pre-Designed Template button, you can import a preset template and customize it as per your requirements.

Content

From the Mode section, you have to select the slider style. Here you’ll find three options.

Select the option as per your requirements. Let’s select Horizontal here.

In the Before Image tab, you have to add the before image in the Select Before Image section.

Then in the Before Label field, you can add a label for the before image.

Similarly from the After Image tab, you have to add the after image from the Select After Image section.

You can add a label for the after image in the After Label field.

From the Alignment section, you can align the slider in the container.

By enabling the Full Width toggle, you can make the slider full width to its parent container.

From the On Mouse Hover toggle, you can move the slider separator line along with the mouse cursor. When disabled you have to click on different parts of the image to move the separator line.

From the Image Size dropdown, you can manage the image size.

Separator Option

By enabling the Separator Line toggle, you’ll get different options to style the separator line.

Note: You’ll see the Separator Line tab only for the Horizontal and Vertical modes.

Separator Style – From here, you can change the style of the separator line. Here you’ll find two options – 

  • Middle – This will create a full-height vertical separator line in the container. 
  • Bottom – This will create a full width horizontal separator at the bottom of the container.

Separator Width – From here, you can change the separator line width.

Separator Color – From here, you can change the separator color.

Separator Bottom Color – You’ll see this option for the Bottom style only. From here, you can change the bottom separator color.

From the Separator Icon section, you can add an icon in the middle of the image separator.

Then from the Separator Position section, you can set the initial separator position.

How to Style the Before After Block?

To style the Before After block, you’ll find all the options in the Style tab. 

Label Option – From here, you can style the slider labels.

before after style new

Advanced options remain common for all our blocks, you can explore all the options from here.

View Advanced tab tutorial.

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 are the key features of the Before After block?

The Before After block offers three slider styles: Opacity, Horizontal, and Vertical. This flexibility allows you to choose the best visual representation for your content. For instance, the Opacity slider is great for subtle comparisons, while the Vertical and Horizontal sliders provide clear side-by-side views. This variety enhances user engagement and helps showcase transformations effectively.

How do I activate the Before After block in Nexter Blocks?

To activate the Before After block, navigate to Nexter u2192 Blocks in your WordPress dashboard. Search for the block name and toggle it on. This step is crucial as the Before After block is part of the PRO version of Nexter Blocks, ensuring you have access to premium features for your image comparisons.

What should I do if the Before After block is not showing up?

If the Before After block is not appearing, first ensure that the Nexter Blocks plugin is installed and activated. Then, check if the block is enabled in the Nexter u2192 Blocks section. If itu2019s still not visible, confirm that you are using the PRO version of Nexter Blocks, as this feature is exclusive to premium users.

Last reviewed: April 14, 2026

Related Docs