The Yoast WordPress plugin adds the Facebook open graph markup to your WordPress head if you enable it. It takes the locale setting from whatever language you have set in the WordPress general settings. You can change it in the settings to whatever locale you need or, if you want to keep the WordPress language […]
Add this to your theme’s functions.php to remove the search schema that the Yoast WordPress SEO plugin puts in the WordPress head. Particularly if you’re not using the WordPress search on the site!
Removes the new emoji scripts which are in the head from WordPress 4.2 up. Put this in your theme’s functions.php
If you have a folder/directory that resides outside of the Dropbox folder you can still sync it to Dropbox. You need to create a symlink between the folders. To do this: 1 – Go to the dropbox directory you want to have the external directory linked to cd /path/to/dropbox/directory 2 – Create the symlink to […]
No index a webpage: http://www.robotstxt.org/meta.html robots.txt examples Disallow all User-Agent: * Disallow: / Allow all User-Agent: * Disallow: Standard WordPress robots.txt User-Agent: * Disallow: Note: due to Google now rendering pages using all css and javascript, it’s probably not a good idea to Disallow: /wp-content/plugins/ any more http://www.robotstxt.org/robotstxt.html Meta Description Length: 923px 156 characters http://www.screamingfrog.co.uk/page-title-meta-description-lengths-by-pixel-width/ […]
Ok, work in progress, but I am rebuilding my Windows PC. I am getting rid of Windows 8.1 as I simply can’t live with it anymore, I’ve tried, but it’s no good I want to go back to Windows 7. Now rebuilding this Windows PC is not something I’m doing on a whim, it’s a […]
To completely disable all types of automatic updates, core or otherwise, add the above to wp-config.php file:
Delete files from a directory: rm [options..] [file|directory] -f Remove all files in a directory without prompting the user. -i Interactive. With this option, rm prompts for confirmation before removing any files. -r (or) -R Recursively remove directories and subdirectories in the argument list. The directory will be emptied of files and removed. The user […]
How to upgrade just Google Chrome in Linux (Debian) To upgrade Google Chrome to the latest stable version: sudo apt-get –only-upgrade install google-chrome-stable Might need to kill all instances of Chrome, to kill all instances of Chrome: sudo pkill -15 google-chrome
To set the WordPress file and folder permissions in Linux terminal: Go to the WordPress directory: cd /path/to/wordpress/ Change all directories to 755: sudo find . -type d -exec chmod 0755 {} \; Change all files to 644: sudo find . -type f -exec chmod 0644 {} \;