Creating Content Dividers With the Wavy Divider WordPress Plugin

Kevin Batdorf, the Project Lead Developer at Extendify, released the Wavy Divider plugin earlier this week. It is described as “a colorful, fun, lightweight divider block to energize your website with character and pizazz.”

As someone who believes every Friday should be officially titled “Fun Friday,” how could I not install and activate it?

I have not seen many block plugins employ a random design option before, and Wavy Divider may be the first. Its foremost setting is a “shuffle waves” control. When a user clicks it, the divider is regenerated with new locations for its peaks and valleys.

Wavy Divider in the WordPress block editor, a colorful section for breaking up content.
Adding the first Wavy Divider.

I have mixed feelings about the shuffling option. One side of me wants to know what I am getting before I hit the button, and the other is pleasantly enjoying the randomness of it all. Users who prefer tight control over each point where each wave rises or slopes down might want to look elsewhere.

The plugin is not entirely a jumble of unpredictability. It offers a handful of other options for users to exert some control over its output. There are toggles for the divider’s smoothness and direction. The former switches between the default wavy style and its straight-lined rigid counterpart. The latter moves the wave flow from the bottom to the top and vice versa.

Users can set the divider’s height, points, and opacity. There is also a color option.

If you really want to get creative, your best option is mixing and matching it with the core Group and Cover blocks. The plugin’s documentation walks users through creating a mirrored gradient effect by using two dividers inside a Group. I followed the directions and built a gradient river that flowed across the screen:

An orange, pink, purple, and blue wavy gradient flowing across the screen.
Two dividers inside of a Group block with a gradient.

In the right hands, it is entirely possible to buff out some of the roughness, putting a professional sheen on top of it all.

I threw together an intro section for a fitness or adventure blog. The goal was to create the appearance of a site owner with personality. However, better designers will use it to piece together something unique to their brands.

Section with sunset gradient background on top of a mountain-shaped black divider.
Adventure blog intro section with bottom divider.

Half the fun of this plugin is trying out-of-the-ordinary combinations with other blocks. The other half is discovering new shapes via the shuffle option.

You can also use the plugin for your next low-budget horror film’s cover art (this was absolutely an experiment gone weird when testing this plugin, but I figured I would share anyway ):

A portrait-oriented box with the woods and moon faded into the background.  Covering it is a green slime running from top to bottom.

There is a little something for anyone with an imagination or enough time to repeatedly click the “shuffle waves” button until they land on that perfect wave shape. As I said, it is Friday, and we should all let loose and have a little fun.

I tend to bookmark projects with well-structured code for my own edification, and Wavy Divider fits that mold. For developers who want relatively simple examples of block development to study, it would be hard to go wrong using it as a starting point. The code is available on GitHub.

7

7 responses to “Creating Content Dividers With the Wavy Divider WordPress Plugin”

  1. Hey Justin, thanks for the write up. Awesome patterns by the way! I’m thinking of adding some examples to the pattern library over the weekend if I have time. I might make a couple inspired by these if you don’t mind. Something spooky would be fun to make. Or maybe I can come up with something Valentine’s day themed.

    I’m happy to see you used the opacity feature with the cover block, actually. I wasn’t sure if that would be useful but you used it very nicely. Looking forward to the Slime Monster Diaries trilogy when it’s out.

    I have mixed feelings about the shuffling option.

    You know, I went back and forth on this a bit as well. I originally started mapping out some controls, but I found myself just having fun pressing the shuffle button over and over and watching the shape change. I felt the limitation/restriction might make it more enjoyable to use (fine tuning could be overwhelming). That said, I’ve thought about adding a start and end point option as those might be useful to add some sort of symmetry.

    I have some ideas for more fun blocks so stay tuned!

  2. Hi everyone,
    I’m a big fan of your blog and also the block editor. I wonder if these plugins dedicated on improving the block editor will add a lot of weight to the overall page and might negatively impact performance. Plugins for the classic editor often added unnecessary css, etc. Is that any different for the block editor?

    Also, are you aware of other divider plugins that could improve headlines? I might give the wavy divider a try though.

    Cheers!

    • Almost all block plugins will at least add a few kilobytes of load to the editor because they are written in JavaScript. As for the front end, it really depends on what the plugin itself does. Some don’t add anything at all. Some add a little CSS. Others add some heavy JS.

      The block editor in and of itself doesn’t necessarily mean that plugins for it will impact performance one way or another. With that said, if developers stick to using standard core tools and block “supports,” it is pretty easy to keep most one-off block plugins pretty lightweight.

      But, again, it all depends on so many factors that it’s impossible to make a general statement.

Newsletter

Subscribe Via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.