Naturally, the theme updated and all my changes were wiped. Thankfully I had backups saved, so I was able to restore my custom code, but I really want all my custom code to be completely independent of the theme. What's the proper way to handle shortcodes, css, and script/style enqueing so that theme changes won't remove them?
I found a number of blogs recommending using child themes, but as I understand it that's not truly theme agnostic, for lack of a better term. I want my shortcodes and JS libraries to remain in place no matter if the theme updates, wordpress updates, or I change themes completely.
I also made a small update to my theme's header.php file (I wanted the ability to add a quote to my site, above the menu items, and reposition where the site logo was displayed) I'm imagining this will be more difficult to maintain since, unlike CSS and shortcodes, it is actually changing the content, not adding to it. Is there any way to protect/maintain changes to a theme's header.php as well?