Need Help Adding Code To Wordpress

cyrus451

Regular Member
Joined
Apr 24, 2013
Messages
301
Reaction score
106
Hi guys,

Im needing some help. I have some code generated by chat gpt for a calculator. How can i add this code to a wordpress post and make it run correctly? I tried just regular import and it shows my form, but none of the calculations are done once the user hits submit. Thank you guys for reading this.
 
do you have a screenshot? Should i tell chatgpt to create the form/code in a certain programming language?
 
Ask for code in javascript, should be fairly easy to embed. Check youtube for tutorials.
 
thats what i believe it was in, then when i past into the post it looks correct with the form and everything, but when you hit 'calculate' or the button nothing happens. Do I need to turn on javascript for that post somehow or how exactly should I add the code to the post to get it to run correctly?
 
thats what i believe it was in, then when i past into the post it looks correct with the form and everything, but when you hit 'calculate' or the button nothing happens. Do I need to turn on javascript for that post somehow or how exactly should I add the code to the post to get it to run correctly?
If its in JS, then yes, you would need to turn on JS for a JS script to work
 
How exactly would I do that in wordpress?
 
How exactly would I do that in wordpress?
Just type what you have asked here on Google or Youtube. You'll get tons of videos
 
Open the WordPress editor and create a new post, Click on the "+" icon to add a new block. and Search for "Code" Paste your code into the block. Save your post and preview it to make sure the code is working correctly.
 
Back
Top