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 # […]
iDevice Home Screen Icon
Ever tried to add a website to the home screen of your iPhone or iPad and get a weird half filled out screenshot of the page? Well take control of your icons with this handy bit of code! Add this to the header.php file of your WordPress theme: <link rel=”apple-touch-icon” href=”/path/to/icon.png”> That’s all it takes! […]
CSS Card Suit Shapes: The Club
Drawing inspiration from Chris Coyier’s “The Shapes of CSS” at CSS Tricks, I decided to have some fun with css and the suits in a deck of cards. The club is all CSS, however, it requires mulitple divs to pull off. Club The HTML: <div id=”circle”></div> <div id=”triangle”></div> <div id=”base”></div> The CSS: #circle { width: […]