PHP

PHP, Tech Tip

Include Private/Draft Pages In Parent Dropdowns

By default, WordPress only includes published pages in the dropdown select menu that allows you to choose a parent for a particular page. This is a pretty well documented problem that is yet to be addressed in core. Not a huge issue, however it can cause some pretty pesky problems. For example, say you have […]

Genesis, PHP, Tech Tip

How to Properly Move the Entire Site Footer in Genesis

We recently had the need to move the entire .site-footer div in Genesis. There are various tutorials out there that suggest using the following code to relocate your footer content: remove_action( ‘genesis_footer’, ‘genesis_do_footer’ ); add_action( ‘new_hook’, ‘genesis_do_footer’ ); However this won’t actually move the entire .site-footer div. On the contrary, it will only relocate the

CSS, Genesis, PHP, Tech Tip

New Mm Theme: Trestle

A handy boilerplate child theme for serious Genesis developers. Trestle takes a lot of the grunt work out of building sites using the Genesis Framework, providing quick and easy-to-implement solutions to common problems and repetitive tasks. We’ve taken Genesis’ rock-solid foundation, integrated mobile-first CSS, responsive navigation, a full-featured settings panel, and much more. Download. Install. Enjoy. View

PHP, Tech Tip

WordPress Captions – How to Remove Default 10px Padding

One of the things WordPress does right out of the box that we don’t always like is automatically add an extra 10px of width to all images with captions. This is great if you want to preserve the default .wp-caption styling with a nice 5px of padded gray around the image, but if you change your

PHP, Tech Tip

How to Get URLs for WordPress Admin Menu Items

Recently, we were working on a project in which we needed a reliable way to get URL’s for WordPress admin menu items (Dashboard, Posts, Plugins, Tools, etc). Despite our best searching efforts, we simply could not find an answer – seemingly no existing function to accomplish this task. So we ended up digging into menu-header.php,

Javascript, PHP, Plugins, Tech Tip

How to Make a Custom jQuery WordPress Plugin

We love jQuery. A lot. And we use it a lot too. In fact, on pretty much every site we build, we utilize a common set of basic jQuery snippets that do some handy things (opening external links in a new window, adding helpful classes to list elements, labeling links based on there “href” attributes,

PHP, Plugins, Tech Tip

Custom Excerpt Placeholder for Events Manager

This PHP snippet creates a #_CUSTOMEXCERPT placeholder to be used with the Events Manager plugin. Just throw it in functions.php, and you can then use #_CUSTOMEXCERPT in place of #_EVENTEXCERPT in your event/list templates. The snippet has two variables you may wish to edit: $strip_HTML – whether or not to remove HTML tags from the