Have you added any widgets to the sidebar after you modified the code?
Yes, that’s when my code stopped showing up.
Anything that is coded into the sidebar is usually overridden when a widget is installed. You have a couple of options. The simpler solution is to add your code back into a text widget and place it in the sidebar. You can also divide your sidebar into separate static and dynamic sections and place the code you want in the static section.
Interesting, thanks for your help.