I added the text to the site’s functions.php file, but received the error “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.”
I don’t really know where to start with writing a plugin. Any help would be appreciated.