Rather than try to 'fix' my old theme and all of the custom code that I had put in there, I decided to scrap it altogether.
Esikhundleni sokuzama 'ukulungisa' itimu yami yakudala nayo yonke ikhodi yangokwezifiso engangiyibeke lapho, nginqume ukuyilahla ngokuphelele.