Where to put code….functions.php or wp_admin editor for theme
-
Over the years, we have added a lot of custom code to functions.php to modify our theme. I’ve never loved having to tinker with functions.php, because a single typo can bring down the whole site (and modifying via FTP is a bit of a hassle).
We run the Genesis theme, which recently added a nice admin screen to add code to wp_head(); there is also a plug-in that gives access to other wp hooks via admin panel. It seems much easier to view/maintain via the admin screens (vs. FTP) and I also wonder whether it’s somehow less risky that mucking around in functions.php.
Is there a best practice on whether this type of code should be put in the functions.php file or is it fine to maintain on the theme admin pages in wp_admin? When do we choose one location vs the other?
- The topic ‘Where to put code….functions.php or wp_admin editor for theme’ is closed to new replies.