First of all, a PHP Notice
is just that: a notice. It’s not an error. PHP is simply letting you know there is a minor issue with the code. The code will probably still work OK. 98% of site PHP logs will show notices and warnings when debug is enabled. Real errors that crash a site will be logged as Fatal Error
. See https://www.webdevsplanet.com/post/php-notice-warning-and-error-messages
Second, trying to remove chunks of code from an entire theme is far too complex of a question to ask here. I’s something you need to dive into and learn yourself. Start with a simpler theme and see https://developer.wordpress.org/themes/getting-started/
“…a lot of code was put in this theme to cater to everyone.”
Of course it was. Theme designers want to make a theme easy for anyone to use. Why would they want to make it more difficult?