Fix WordPress ‘Destination directory for file streaming does not exist or is not writable’

Posted by & filed under Code Snippets, PHP, WordPress.

PHP Code Snippet

Occasionally you will try and install a new plugin on a fresh install of WordPress, and come a cropper with an error that returns ‘Download failed. Destination directory for file streaming does not exist or is not writable.‘   This is usually caused by incorrect permissions in the wp-content folder, as WordPress needs to create a…

Read more »

Disable plugin updates for a specific plugin in WordPress 3.8

Posted by & filed under Code Snippets, PHP, WordPress.

PHP Code Snippet

Obviously, where possible, you should always keep your plugins and WordPress versions up-to-date to avoid any security implications. However there maybe times when you need stop a plugin from updating, for example when you have modified it. This small code snippet will stop any update notifications on a specific plugin. add_filter(‘site_transient_update_plugins’, ‘dd_remove_update_nag’); function dd_remove_update_nag($value) {…

Read more »

Overcome broken RSS feeds in WordPress

Posted by & filed under Code Snippets, PHP, WordPress.

PHP Code Snippet

If you are seeing the words “error on line 2 at column 6: XML declaration allowed only at the start of the document” when you try visiting your WordPress blog’s RSS feed, then you are not alone. It seems that there are issues with some installations where whitespace amongst core files is causing XML errors….

Read more »

A pure CSS image hover

Posted by & filed under Code Snippets, CSS.

CSS Code Snippet

The traditional method to creating a great image hover was to use Javascript. Now, thanks to CSS3, it is just not necessary to do so. Reduce your page load times by just initiating this CSS.   Simple and Effective CSS   #mainwrapper { font: 10pt normal Arial, sans-serif; height: auto; margin: 30px auto 0 auto;…

Read more »

Use just 3 lines of CSS to vertically align content

Posted by & filed under Code Snippets, CSS.

CSS Code Snippet

Using CSS3s ‘transform’ property we can simply and easily vertically align content. The transform property was designed to enable simple animations such as rotating and scaling elements, however we can manipulate content with transform:translateY. To do this all we need to write is .element { position: relative; transform: translateY(-50%); top: 50%; } This is all…

Read more »