New WordPress Plugin: Widgets Avalanche for Ecwid

For the past few weeks I have been working on a plugin to integrate the new Ecwid API with WordPress. It’s called Widgets Avalanhce for Ecwid:

https://wordpress.org/plugins/ecwid-widgets-avalanche

This plugin does two things:

  • Gives you a UI for connecting your store to your WordPress install (AKA getting an authentication token).
  • Gives you a bunch of widgets for outputting your Ecwid products and categories in interesting ways.

Right now, it ships with three different widgets:

  • A popup.
  • A slider.
  • An accordion.

The plugin is very simple from an admin and visitor perspective, but it is packed with hooked and pluggable functions, making it 100% customizable from a developer perspective.

I think Ecwid is a phenomenal e-commerce platform and it’s my first choice when clients ask me about creating an online store. But until now, there have been very few options when it comes to showcasing your products beyond the Ecwid defaults.

Check it out!

Published on CSS-Tricks!

Much thanks to Chris Coyier for accepting me as a guest author on css-tricks today!

I wrote a brief article about altering the CSS classes that WordPress generates by default, giving them a more SMACCS-friendly naming scheme.

SMACCS-Press!

WordPress Function to Create a Breadcrumb Navigation Menu

The first time I started using breadcrumbs was as a part of the Yoast SEO plugin. While that’s a very well-written and successful plugin, I do think it oversteps its bounds in many ways, and I prefer not to install it for several reasons. The main one is that it adds so much functionality to wp-admin that it ends up confusing admin users. It also gives them the ability to jam keywords that may be doing them more harm than good.

But I do appreciate the breadcrumbs, and they’re really tricky to create! To that end, I came up with my own template tag for breadcrumbs, and it responds to a variety of views, to include single, search, custom post types, and 404. It also “crumbs down” into child posts or child terms of the current view.

Here’s the gist.

As a word of warning, this function contains references to other functions from my theme that you probably won’t have running, so, as always, read it and understand it before you use it. That said, here are the helper functions referenced in the main breadcrumbs function:

https://gist.github.com/scofennell/f8f52b89a004c58ef4b2

WordPress Plugin to Log JS Errors in a Page

At my day job, we’re looking at a way to migrate a large number of sites from an outdated WordPress install to a current one. I believe that our biggest problem with be the differing versions of jQuery. To that end, I created this plugin, to log JavaScript errors to a page.

more… WordPress Plugin to Log JS Errors in a Page

WordPress JSON Rest API Shortcode & Tutorial

They say you’re supposed to write with one specific person in mind, instead of writing for everyone. In this case, I’m writing for, well, me. Specifically, me before I spent about 4 hours hello-worlding the new WordPress JSON Rest API yesterday. I found the existing documentation to be a little too advanced, or vague, for my humble skill set. To that end, I’ve written a shortcode to bundle up what I learned and to help you hello-world it yourself:

more… WordPress JSON Rest API Shortcode & Tutorial