WordPress is overkill for 90% of small business websites, especially if they are only every going to ask the web developer to make changes. Static websites used to be just that, static, but now it is possible to create static websites that are simple (relatively) to update dynamically. Hugo is a Golang project that [Read the full article…]
Google Chrome extract links
Extract links from a Google Chrome page Inspect element Go to console run urls = $$(‘a’); for (url in urls) console.log ( urls[url].href );
Google not able to fetch robots.txt
Recently I was getting a message from Web Master Tools, Googlebot can’t access your site! Over the last 24 hours, Googlebot encountered 87 errors while attempting to access your robots.txt. To ensure that we didn’t crawl any pages listed in that file, we postponed our crawl. Your site’s overall robots.txt error rate is 64.4% Recommended action [Read the full article…]
Forcing a site to HTTPS using .htaccess
Occasionally you may want a site to be fully https. Especially since Google recently said that they may prefer HTTPS sites as getting a certificate is a costly exercise so spammers are less likely to adopt SSL. Within .htaccess the code is as follows RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
How to speed up a WordPress website?
There are many ways to improve your WordPress site speed, however there are a couple of really simple and free things you can do that will increase WordPress site speed. I am talking about self hosted WordPress here of course, not if you have a blog on WordPress.com. If you are self hosting WordPress then [Read the full article…]
Who is anticrawler.org and is it safe
I noticed I got referred from anticrawler.org on my Piwik analytics. Obviously suspicions were immediately raised, but required some further investigation. The site, anticrawler.org just has a simple request for you to add some javascript to your website. See screen shot of anticrawler.org There is no further information, so trust level has to be [Read the full article…]
How to inspect element in Safari like you can in Chrome
When developing or tweaking a website ‘inspect element’ is an essential tool to see what is going on, especially when adjusting CSS. Chrome comes automatically with ‘right click’ inspect element, and I was trying to do this in Safari but it didn’t seem to have this feature. However, it does actually, but inspect element isn’t [Read the full article…]
Code to delete all images from WordPress or nearly all
The other day I had a bit of a nightmare with a plugin that looped and created multiple images, in fact thousands of them. I got bored with trying to delete them manually so wrote some code quickly. The first thing was how to write code that runs using wordpress, you can use technique simply [Read the full article…]
Having a custom functions or styles per individual WordPress multisite site
If you are running a multi-site and you a have common theme sometime is becomes a requirement to add specific styling and functions for an individual site or two. The traditional way is to create a child theme and apply that to the site, and this works fine, but this method allows you to create individual [Read the full article…]
Moving where Gravity Forms stores uploads
To migrate where Gravity Forms stores uploads, first you need to add a filter to your functions.php I needed to do this as a wanted a secure place and the default location was giving me problems. Create a directory of your server that is visible from the web, and secure it with .htaccess appropriately e.g. [Read the full article…]
