I believe that you’ll need to make a theme component that will allow you to add the code to a topic. Search “theme howto”