so i implemented the code exactly as i was shown in the forum and it works everything works BUT only in preview. it does not work in the published site..... my search code that used to be working does not work in the published site... !!!
Thanks in advance for the help!:-)