How to overwrite functions.php if permission to overwrite is denied?

[ad_1]

Hello recently I added 3 lines of code to my functions.php . Before editing I downloaded original in case something goes wrong. Site gave critical error can’t login to it anymore.

Now when I try to overwrite that functions.php it says permission denied. Can’t edit it in consol because it’s set to read only. I use Lightsail. Is there any solution for this?

[ad_2]
3 Comments
  1. 1. Download it
    2. Delete it
    3. Re-upload it

    Sometimes this works, depending of the permissions set.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer