Congratulations!

Congratulations!

You've unlocked the about me and contact me pages!

Trophy Icon

Unlock Additional Pages:

Key Icon 1
Unlock Locked Icon

WordPress Plugin: Simple Comparison Slider

Tech Used: PHP, JS, CSS, HTML

I quickly made this plugin to make adding sliders to my Europa Universalis 4 graphics mod page.

I’m trying to keep my website pretty lightweight, so I didn’t want to add a big bulky plugin nor one that required a subscription.

I would have to add a custom coded slider anyway, so why not make it easy to put a bunch on my website by making a quick plugin.

For examples of bigger plugins I’ve done, check out Versatile Shipping, Quick Product Options, Secure Contact Forms, or the Texas Tax Calculator.

Example slider featuring moi.

 

Adding sliders is easy, all you do is drop the shortcode anywhere on the site and it shows up. Just specify the image ids found in the url when visiting the image in the media library.

Image 1 is the Before image and Image 2 is the after.

Shortcodes of the sliders seen on the EU4 Graphics Mod page.

 

At present, shortcodes support img1 (before), img2 (after), caption, and a fallback image.

It’s likely I will expand the plugin as the need arises, and eventually it may feature other kinds of sliders or other special features like carousels, galleries, etc.