It seems you have edited the original theme files that resulted in stray end tags. For modifications/customization, create a child theme instead.
Replace the theme with a freshly downloaded copy of the theme so that the text will move to where it should be.