Category Archives: How to

How to fix wordpress plugins that will not update or delete.

Very recently on 2 sites stevewinslow.co.uk and bristolclimbingscene.co.uk I have the same problem or at least very similar, Plugins on my wordpress install would either not delete or update or both. The issue after many annoying hours was that my host due to issues “they say” with my domain had alter some permissions, I am still not convinced on the how but for now its fixed so I am happy.

overall_error_looking_a_ftp

The error was, as is often, with linux or mac machines, the Permissions of the folders, Specifically the folders of the Theme and Plugins in the wp-content folder.

error_updating_plugins

What follows below are some quick step and images to back up your progress.

Before we start though, its always a good idea to make a backup of the your site first (even though its not working for), I am not going to cover that here but there are plenty of great articles already written. BACK UP YOUR SITE NOW.

Ok, onto the fixing the permissions

To fix this error or at least rule it out you will need an FTP program, I use Cyberduck for OS X, and your login details for ftp and your hosting account. Here, I am not going to show you how to complete any of these steps.

How to fix the permissions of your wordpress

  • Visit your “wp-content” with your FTP program.
  • Find the permissions of the “Themes” and “Plugins” folder, in CyberDuck “command+i” does this.

wrong_permissions

  • If the error is due to permissions, then either or both of the folders with have permissions of something similar to 555. This does not have to be exactly the same but most likely it will at least not have a “write” box ticked for the “owner”.
  • Change the permissions to 755. This allows the owner (you) to edit the “Plugins” and “Themes” folder. Make sure that you click “Apply changes recursively” so that all the permission trickle down through all the plugins and themes in the contained in the folder.

correct_permissions

Thats it. Head back over to your WP Dashboard and attempt the update. If you have followed the steps correctly and the permissions was the only error (Very likely) then the plugins should update perfectly.

 

succesful_updates

 

If successful its time for another back up. Always a good idea.

I would love to hear any comments you have. Thanks for reading I hope I help or some at least one person’s time.

How to Remove the OS X Notification Centre

Removing the OS X Notification centre

To remove the Notification centre on your Mac follow these steps below

Open the Terminal ( in utilities/applications )

Copy and paste the code below and hit enter

launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist

The Notification centre will stop but will leave a small gap, hover/click the mouse over the area and the icons will close the gap.

Thats it.

 

Restarting the OS X Notification Centre

To turn it back on if you change your mind reopen Terminal and enter the code below and hit enter

launchctl load -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist

You may need to restart the Notification app depending on your system, if it does not start after hitting enter go to “/System/Library/CoreServices”

Find the Notification Centre.app and double click

 

Let me know how you get on or if you need any more help.

 

 

How to stop Google Fonts from being in cut in half!

<link href='http://fonts.googleapis.com/css?family=Oswald:400,300,700' rel='stylesheet' type='text/css'>

Following the link that you place in your header to call the google font like the one above shows the CSS Code Below

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300;
  src: local('Oswald Light'), local('Oswald-Light'), url(http://themes.googleusercontent.com/static/fonts/oswald/v8/HqHm7BVC_nzzTui2lzQTDT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: local('Oswald Regular'), local('Oswald-Regular'), url(http://themes.googleusercontent.com/static/fonts/oswald/v8/-g5pDUSRgvxvOl5u-a_WHw.woff) format('woff');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  src: local('Oswald Bold'), local('Oswald-Bold'), url(http://themes.googleusercontent.com/static/fonts/oswald/v8/bH7276GfdCjMjApa_dkG6T8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
}

 

It is then just the case of modifying the code to stop the browser calling for the “Local” version of the font and only every grabbing the “remote” version from Google.

The Code below simply has “local(‘Oswald Bold’), local(‘Oswald-Bold’)” Remove from each line.

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300;
  src: url(http://themes.googleusercontent.com/static/fonts/oswald/v8/HqHm7BVC_nzzTui2lzQTDT8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: url(http://themes.googleusercontent.com/static/fonts/oswald/v8/-g5pDUSRgvxvOl5u-a_WHw.woff) format('woff');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  src: url(http://themes.googleusercontent.com/static/fonts/oswald/v8/bH7276GfdCjMjApa_dkG6T8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
}

Thats it all done, this should now stop all those fonts becoming truncated,. Let me know how you get on