Optimise your bespoke WordPress theme for performance and SEO.

Store WordPress environment variables in a separate file

Load your environment variables from a separate dot file to keep them secure and environment specific

Add a quick link to edit the website’s Front Page under the admin Pages menu

Create a Front Page link from the WordPress admin area which provides quick access to edit the homepage of your site

How to defer scripts in WordPress

Append the defer attribute to JavaScript files on your WordPress site in order to avoid render-blocking scripts and improve performance.

Cloudflare: enable full page caching with WordPress

Cache the HTML of your webpages on Cloudflare’s CDN for quicker loading sites that use less data transfer and lighten the load on your web server.

Optimising WordPress for SEO by removing default assets

If you’re working on a fully bespoke WordPress theme, there are a number of default assets you can likely remove from WordPress to streamline the loading times of your new site.