Kim Spasaro

WordPress

WordPress Site Migrations Made Easy

August 19, 2017

If you’ve ever migrated a WordPress site then you have a good idea of the challenges that can arise. WordPress provides a default tool for importing and exporting site content but the tool is flaky at best. Luckily there’s a plugin the succeeds where the default WordPress import/export tool fails: All in One WP Migration.

Creating Standalone WordPress Pages

April 30, 2016

WordPress has a great feature that allows us to create different page types. Simply adding the proper comment to the top of your template file will make that page type available when you create a new page. It doesn’t matter what you name the page as long as it’s in your theme directory (or your

Adding a Gallery Lightbox with WordPress REST API

April 30, 2016

There are plenty of WordPress gallery plugins, but sometimes you just need to build your own. This can be useful if you need to add a custom/branded lightbox. The idea behind a lightbox is simple: Click a gallery thumbnail Show the full image in a lightbox popup The only real challenge to creating a lightbox is

Enqueueing Shortcode Styles and Scripts

April 30, 2016

Most shortcodes makes use of custom styles and scripts. Enqueueing styles/scripts typically looks something like this: function my_shortcode_enqueue_scripts(){ wp_enqueue_script( ‘my_shortcode_script’, $script_path ); wp_enqueue_style( ‘my_shortcode_style’, $style_path ); } add_action( ‘wp_enqueue_scripts’, ‘my_shortcode_enqueue_scripts’ ); The problem with enqueueing shortcode styles/scripts this way is that it publishes the styles/scripts for every page–even on pages where the shortcode is not