Will HTTP/2 Make Your WordPress Site Faster?

Will HTTP/2 make your WordPress site faster

What is HTTP/2?

Without boring the pants off you, HTTP/2 is an updated and more efficient way of delivering web site components from server to browser. There are 3 conditions:

  • Browsers have to support it – most of them do now.
  • Servers have to support it. Many do, ask your host about it. If they don’t, using Cloudflare will enable HTTP/2
  • Your site has to use HTTPS

Now that it’s becoming increasingly widespread, most articles on the topic make sweeping promises of faster performance, “just like that”, simply by enabling it. But there are fewer articles which actually back up these claims with test results.

I recently converted a couple of sites from HTTP to HTTPS and decided to take the opportunity to see what difference, if any, enabling HTTP/2 made.

Read more

Show Custom Text on a Password Protected WordPress Page/Post

how to show custom text on a password protected page

It’s easy to password protect an entire page or post in WordPress. But what if you would like to show part of the content on the page?

I did look for a plugin solution for this at first. I thought it would be easy to find a plugin that gave you a shortcode to wrap around content you wanted to keep protected. I was wrong (unless you want to utilize user roles, but I didn’t want people to have to log in). I came across Content Protector, but found it really unreliable.

But there’s a pretty easy solution if you’re OK with a little code. For this solution you will need:

  • A child theme (because we’re going to be editing template files)
  • An understanding of the WordPress template hierarchy
  • The confidence to edit some PHP code

If this all sounds a bit much for you, you may want to check out my post on Going Beyond WordPress Basics, to build your confidence.

Read more

Code Snippets To Customize Jetpack

How to customize the Jetpack WordPress plugin

Automattic’s Jetpack plugin has come a long way! It’s been much-maligned in the past for being bloated and slow and for that reason many developers wouldn’t touch it with a 10-foot keyboard. These days it’s much better – it’s more truly modularized to give you more control over exactly what’s activated. From the code side of things, developers will be pleasantly surprised to discover that it has been sprinkled with lots of actions and filters. So, while Jetpack is still generally marketed to entry-level end users, there are actually some nice Easter eggs for developers who want to customize things a little bit for their clients.

Read more