Edit WordPress Email Templates in the Customizer

mailboxes

Argentinian WordPress developer Damian Logghe had never touched the Customizer API, but with all the controversy swirling around it, he decided to jump in to see what all the fuss was about.

“The customizer has been making a lot of noise lately, as we all know, bringing politics to WordPress, and by politics I mean people arguing but getting nowhere,” he said.

“As a plugin developer I never coded with the customizer and I only used it as a front end user. But at the latest WordCamp Buenos Aires, Elio Rivero spoke about using the customizer in plugins, and I decided to give it a try instead of entering into debate. And you know what? I loved it!”

Logghe was contracted to build a new WordPress site and was looking for an easy way to beautify WordPress’ default emails. He thought that the customizer would be the best choice for the job. After a week of development, he created Email Templates, the first plugin to enhance WordPress email templates using the customizer.

Email Templates can be accessed under the Appearance menu. The plugin creates customizer panels for editing the template, email header, footer, and settings. It even includes the ability to send a test email.

email-templates-panels

Adding a logo to the top of your email template is as easy as uploading an image. You can also customize the alignment, background color, and header text. The plugin includes panels for changing the “from name” and “from email”, footer text, and basic template styles.

email-templates-logo

After you finish your customizations, you can fire off a test email to see how the new template looks in your inbox. I tested the plugin and found that it works as advertised. Ordinarily, customizing WordPress’ default email template is not something your average user would attempt to do. The Email Templates plugin makes this accessible to anyone.

Building with the Customizer API has solidified Logghe’s belief in its potential for the future of WordPress. His example of live previewing email templates is a creative use of the API in the context of a plugin.

“In my opinion, the customizer is the right choice for every design change,” he said. “The API is extremely easy to use and previewing changes on the fly makes it awesome for every end user.

“It is just matter of time until the waters get calm and everyone migrates to it. In a year or so, editing your theme without the customizer is going to feel strange.”

Would you like to write for WP Tavern? We are always accepting guest posts from the community and are looking for new contributors. Get in touch with us and let's discuss your ideas.

13 Comments


  1. This is a very nice walk through Sarah of what can be done with the Customizer. Damian is right: eventually the Customizer will be an amazing feature. From what I understand, Menu Customizer is a bit more controverial though. WordPress.org would have less issues if there were a dev version and a stable version. The stable version could be for businesses while the dev version could go out to people who enjoy playing with their websites and playing with technology.

    Report


  2. I love that definition of politics, ‘and by politics I mean people arguing but getting nowhere,’

    Brilliant.

    Report


  3. “The API is extremely easy to use..”

    Damien is spot on here. This is one of the nicest implemented APIs in WordPress right now. Regardless of whatever stance you take on it (because that’s not the point of the this comment), working with The Customizer itself is great from a development perspective.

    It’s almost recipe-like. There’s a certain set of steps to follow. Once done, you’ve got a feature implemented and it looks great. Sometimes it’s as fast as a day. Other times, it takes something like a week. From there, it can be more.

    Regardless of how complex your feature, The Customizer as an API is underrated.

    Report


  4. Nice to see the Customizer API used for something useful for a change instead of replacing parts of wordpress that already worked perfectly well. ;)

    Report


  5. I think this is going to be part of my standard plugin installs with WP. The use of Customizer API in this intuitive fashion, feels great. Customizer definitely seems to get an up vote here.

    Report


  6. A plugin’s fantastic and creative implementation of the Customizer. I already loved the Customizer API as a theme developer, but other ways it can enhance the WordPress experience are still out there to be explored by the devs’ community.

    Report


  7. Awesome, it really is a nice and useful plugin. Now clients can edit those things without bothering me :P. You always do excellent articles Sarah.

    Cheers
    “Beer is the answer”

    Report


    1. Wow yep the look very similar. I didn’t know about that woocommerce plugin to be honest and I hope Woo guys are not mad at me ;)

      Report

Comments are closed.