Can't edit home page code

I created a backend code file and I need to reference it in the frontend to create functionality for a button but i can’t type or edit the home page code at all. Any reason why?