Enable Error Reporting in WordPress

Troubleshooting WordPress Problems

When things aren’t working as expected on your site, or you get an error notification from WordPress, you will need to check the error logs for your site.

WordPress runs on PHP and the error logs let you know when PHP had problems running code. PHP errors are often the reason plugins or your theme aren’t working as expected.

Read more

Disable Comments in WordPress

If you’re tired of spam, or just find that comments are not appropriate for your site, you may want to disable this WordPress feature entirely.

If you are trying to find a way to remove the “leave a reply” text on your content, disabling comments is also the way to go. If you only want to modify the “leave a reply” text, see this tutorial instead.

Disabling comments for a brand new site is easy enough, but if you have an existing site with published content and comments, you will need to take a few extra steps.

Read more

Destination folder already exists error in WordPress

The “destination folder already exists” message will show up in your WordPress dashboard if you try to install a theme or a plugin that already exists on the server.

To learn more about the behind the scenes of your WordPress site, please see this guide: Going Beyond WordPress Basics

But, in brief, when you install a plugin or theme, a folder on your server is created.

So if you try to upload the same plugin or theme again, there will already be a folder with the same name, and that creates a conflict – you can’t have more than 1 folder in the same location with the same name.

Read more

Reduce unused JavaScript in WordPress

Most WordPress site owners will see the recommendation to “reduce unused Javascript” when they run a PageSpeed test.

The technically complete solution is out of reach for most site owners, but there is an effective shortcut solution for reducing unused JavaScript on your WordPress site that I share below.

What does “reduce unused JavaScript” mean?

JavaScript (JS) is a type of code used on website mostly for interactive elements like sliders, animations etc. Compared to CSS or images, it is much more resource intensive so it takes longer to process when your page is loading. It’s especially bad for mobile performance.

For best performance, you should aim to have as little JavaScript as possible on your site.

Loading JavaScript that isn’t even used on the page is a waste of resources and processing power, and that’s what this PageSpeed recommendation is getting at.

Read more

Improve the mobile speed of your WordPress site

If you’ve ever run a PageSpeed or other speed test for the mobile version of your site, you’ve undoubtedly been horrified by the low speed and score compared to the desktop version  of your site.

In this post I’ll explain:

  • Why mobile performance is typically worse
  • The primary cause of slow mobile pages
  • How to create mobile-specific versions of your pages
  • How to remove unnecessary files from your mobile pages

Optimizing for mobile does take a bit of extra effort since site owners are usually “retrofitting” their sites for mobile performance.

If you are starting a new site, it will be easier if you consider mobile performance from the start, and make it a priority.

Read more