Thanks for the fast response to my question. I opened the sidebar.php file and this message is at the bottom “You need to make this file writable before you can save your changes. See the Codex for more information”.
Do I have to do something special to be able to save changes once I insert the new code?