Avada is currently one of the most popular themes in use for WordPress. We’ve used it for clients on a number of sites purely because it’s easy to use and therefore, easy to train clients to use when they need to make content updates. One thing we try to do as often as possible when […]
Password Protect Directory in WordPress with .htaccess file
I was having a difficult time finding information on how to password protect a directory in WordPress without it throwing a 404 not found error. After lots of searching and multiple examples across lots of other sites, here’s the short and sweet version, all in one place. Step 1: Create a file called 401.html and […]
Remove Taxonomy Menu Items from Dashboard
Occasionally you will use a theme or plugin that adds custom post types and taxonomies to your site. However, there may be taxonomies you don’t want to show up in the WordPress dashboard in an effort to keep things clean.. Here’s a way to hide them from the backend without modifying core files. Add this […]
Remove Taxonomy Metaboxes from Post Type Sidebar
I’m a fan of clean WordPress dashboards for my client. Occasionally you will use a theme or plugin that adds custom post types and taxonomies to your site. However, there may be taxonomies you just don’t need. Here’s a way to hide them from the backend without modifying core files. Add this code to your […]
Change Custom Post Type Taxonomy Labels
Sometimes taxonomies for custom post types are created by themes and plugins you use on your site. Occasionally you may want to change their names to better reflect their use on your site, without changing the theme/plugin files directly. Add this code to functions.php or to a custom plugin. <?php /************************************************************** * Change Custom Post […]
Change Custom Post Type Labels
Ever need to change the labels on a custom post type created by a theme or plugin? Want to make sure you do it without modifying the files themselves? Add this code snippet to either your functions.php file or create your own plugin with it. <?php /************************************************************** * Change Custom Post Type Labels **************************************************************/ function […]
MySQL Find/Delete WordPress Post Type
Sometimes you just need to dump all the data from a post type and start over. Sometimes you need to do a little housekeeping on the db for data you no longer need/use. MySQL query Use with caution. Always backup your database first. Replace ‘product’ with your post type name. SELECT * FROM `wp_posts` WHERE […]
WordPress Revision Management Code Snippets
Revisions are a very helpful aspect of WordPress. However, over time your database can get clogged with hundreds of line items. Here’s a few handy code snippets to help manage WordPress revisions. Add these to wp-config.php Prevent WP from keeping revisions of your content: define(‘WP_POST_REVISIONS’, false) Limit how many revisions WP keeps. Change the # […]
Anchor Name Links
Apparently there are some quirks to named anchors in various browsers. For instance, let’s say you want to link to a midway point on another page. it would looks something like this: Link on page one: <a href=”http://example.com#midway-point”>Midway Point</a> Anchor on page 2: <a name=”midway-point”></a> This seems to work just fine in all browsers except […]
CSS Colorado Flag
Every now and then I get an idea for a fun CSS development experiment. Not that long ago I posted one for the CSS Club as an ode to our logo. Recently, I think while taking a shower (sometimes the best thoughts come in there), I thought “Hey, know what would be cool? A Colorado state flag […]