Tagged: child theme, function.php
Hi discover_peppermint!
My guess would be you are pasting in some hidden characters but otherwise it should be working fine.
I would never recommend editing the file directly in WordPress since any small error can cause the WordPress admin to crash and you’ll then have to go around it and remove/edit the file via ftp anyway (as you’ve seen first hand).
If you use the child theme which comes with the overall theme download it has a populated functions.php file in it you can edit. Otherwise you can try pasting your content into a text editor and then copying it from there.
Cheers!
Devin