Back in the Wix editor, in the dialog box that you opened by clicking Edit Code in step 5, paste the code from your clipboard.
Keep this dialog box open, and repeat step 6, this time pressing Copy <body> code, and paste that code into the same dialog box in the Wix editor, underneath the <head> code you just pasted.
Press the Update button in the dialog box in Wix (not visible in this screenshot)