How Do I Create a Before and After Slider in WordPress?

Creating a before and after slider in WordPress is fairly easy. To get started, first create a new post or page. Then, add the following code to the header of your new page or post:

.

Next, add the following line of code to the bottom of your post or page:

Before After.

That’s it! Your before and after slider should now be up and running. To change the images inside the slider, just replace the values for “before” and “after” in the above code with your own images.