WordPress Resources

What is This?

This page is specifically for information on building and maintaining a WordPress website. You can also see the Tech Resources page for more #Tech info.


Resources


Site Configuration

Below are the setting I like to configure in my WordPress websites.

Free Plugins


Code Snippets for Micro Plugins

Information below was sourced from this reddit post.

Google Analytics / GTM

You don't need a plugin to paste a tracking ID. It adds unnecessary PHP overhead.

SVG Support

This code restricts uploads to Admins or specific users, but it does not sanitize the files (like a plugin would). Only upload SVGs from 100% trusted sources, as a malicious SVG can still compromise the site.

This only allows admins to upload svgs:

This only allows specific user ids to uploads svgs:

Hide Admin Bar for Non-Admins

Great for membership sites or subscriber logins.

Disable XML-RPC

This is a common attack vector. You don't need Wordfence just to turn this specific door off.

Disable Guttenberg

If you never use the built-in block editor, stop loading its CSS on the front end.


More Tech Content

This page is full of information specifically for #Tech, you can also see the Tech Resources page or other pages tagged with #Tech for additional information.