large shade tree

Navigation

Information

Recent Posts

Shade Tree Sites |Building Better Websites

How to Convert Your WordPress Theme to HTML5

Convert a WordPress Theme to html5

 

Making the 960 Grid Responsive

Add to style.css

Add Breadcrumb Navigation to WordPress Theme

Add below to your functions.php file:

How to Include Custom Post Types in RSS Feed

Include below in your functions.php file to add custom post types to you RSS feed:

Shortcode Adds Columns to WordPress Posts

Paste in functions.php:

Track Post Views without a Plugin

Track and show post views without a plugin and add a column for post views to WP Admin.

3 Ways to Increase WordPress Memory

WP_MEMORY_LIMIT allows you to specify the maximum amount of memory that can be consumed by PHP. By default, WordPress will attempt to increase memory allocated to PHP to 32MB (code is at beginning of wp-settings.php), so the setting in wp-config.php should reflect something higher than 32MB.

How to Activate Cropping for Images in WordPress

Add below to your functions.php file:

How to Activate WordPress Link Manager

As of WordPress 3.5 link manager is no longer displayed.
If you would like link manager back paste this in your functions.php file

WordPress wp-config Snippets

Here are a few snippets that can be added to your wp-config to improve your wordpress website:

WordPress Actions & Filters

Disable Comments on WordPress Media Attachments

Paste this into your functions.php file to disable comments on wordpress media attachments:

Custom Field Loop / Query

This piece of code allows you to create a custom loop based on your custom fields in published posts using a direct database call:

Custom Database Error Page

How to Assign a Default Post Thumbnail

To assign a default thumbnail image in WordPress change the highlighted link below to the location of the image you would like to use for your default image and then paste the code below in your functions.php file:

How to Add Google Fonts to WordPress Theme

  1. Go to Google Fonts and find the font you like.
  2. Click: Quick Use - link below and to the right of the font you choose.
  3. Choose the style and character sets you want and then copy the link in the blue add this code to your website box
  4. Repeat for any other font you would like to add.
  5. Combine links for multiple fonts by placing the | character between the font names ( ex. Average|Spirax )
  6. Add your google font link above your main stylesheet link in header.php:

 <link rel=”stylesheet” type=”text/css” href=”http://fonts.googleapis.com/css?family=Average|Spirax” media=”screen”>

WordPress 3.4 Features

QR Code for Your Posts & Pages

What is QR Code?

Add pdf Filter to WordPress Media

Here’s a function that will add support to filter for pdf’s (or any other supported file type just change the slug)  in Wordpress media.