I added the Popup code in an Text widget on the sidebar and that worked