Running Javascript on singular product page

Hello, I am currently working on a project to have a user enter a string into a text box and have the text overlay the product image. I have written the code within the atom code editor and have it working. I am wondering the best way to inject this code for this one product page. The text box needs to be in the short description and the featured image needs to have the string overlay it after the submit button is clicked. Any help would be appreciated. Thank you.

Hey Buck,

Thanks for writing in. Regretfully, our themes do not have an option where you can insert code to a specific post type. You’ll either need a third-party plugin for this or write your own code. Below are articles that could teach you how to insert code per page or custom post type.

If you want to write your own code, you will need to look at WooCommerce hooks and conditional tags. Learning WordPress conditional tags will also be helpful.

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.