Quick performance boost
If you have access to your Apache / NGINX config files, then these directives will significantly boost your site speed. Pretty standard GZip and Browser Expiry but it’s easier than using htaccess I think # Enable Gzip compression gzip on; # Compression level (1-9) gzip_comp_level 5; # Don’t compress anything under 256 bytes gzip_min_length 256; […]
Mask email address
Sometimes clients just won’t accept the advice to use a contact form, and instead insist on having their email address on the site. This, of course, is just an open invitation to spambots scraping the address straight off the site. A simple solution is to use javascript to mask the address thus fooling the cheeky […]
Using Google API to get feed from Blogger
I had previously used the php library SimplePie to pull in blog posts from a clients Blogger blog to show on the their Zencart site. And it worked well – until the hosts did a PHP upgrade and it stopped working (thanks 1&1!) No matter what I tried – different versions of SimplePie, debugging lines […]
Help – I’m locked out of WordPress! Adding users to the WP database using MySQL
I’ve just had this query from a client – well more that he had a site that was out of date and was showing errors (from a host who had upgraded the version of php and the version of WP the client was running was showing up deprecated errors.) So I said I would sort […]
Useful WordPress snippet: Adding styles dropdown & custom css to the TinyMCE editor
The following php code snippet for WordPress does two things: 1) Specifies a new stylesheet that will be referred to by the TinyMCE editor in WordPress, so you can add the default font styles for the users so that when they are typing their copy it more closely mimics what they will see on the […]