Border Image Sass Mixin

The following is a Sass mixin for the CSS3 border-image property. It sets an image as the border. @mixin border-image($source, $slice, $width, $outset, $repeat) { border-image-source: url($source); border-image-slice: $slice; border-image-width: $width; border-image-outset: $outset; border-image-repeat: $repeat; -webkit-border-image: url($source) $slice $width $outset $repeat; -o-border-image: url($source) $slice $width $outset $repeat; } Here is an example of how-to include the mixin within your Sass file(s): @include border-image("border.png", 100%, 1, 0, stretch); »

Set a Minimum Amount of Words to Publish a Post

There is no minimum amount of words you need to write before you can publish a post. You may want to set a minimum amount of words for posts in order to improve your search engine rankings, improve post quality and if your WordPress installation has multiple authors, deter authors from publishing quick posts that may not have the quality or standards you want, i.e. poor quality. The Code Snippet Simply add this to your theme's functions.php file. »

Meta Refresh

Add the following in between the and tags to redirect the visitor to another web page. <meta http-equiv="refresh" content="5;url=http://example.com/" /> In this example, the web page will redirect to example.com after 5 seconds. Change the seconds and URL to whatever you want. Use 0 for immediate redirect. »

Empty the WordPress Trash Bin Every X Days

WordPress features a trash bin, which was add in version 2.9. The trash bin contains any content that you have deleted and automatically empties every 30 days. You can change the 30 days to another interval, by adding the following to your wp-config.php file. define( 'EMPTY_TRASH_DAYS', 7 ); You trash bin will be automatically emptied every 7 days. Change the 7 to whatever you want. By changing the 7 to a 0, the trash bin will be »

Increase or Decrease WordPress JPEG Quality

By default WordPress will automatically compress your JPEG quality to 90%. To increase or decrease the amount, use the following code snippet: // Increase or decrease JPEG quality function himpfen_jpeg_quality() { return 100; } add_filter( 'jpeg_quality', 'himpfen_jpeg_quality' ); Add the code snippet to your theme's functions.php file. On line 3, you'll see the number 100. This is the percentage you want your jpeg quality to be. Change it to whatever you want - anything below 90 is »