This topic has 4 replies, 2 voices, and was last updated 6 years, 6 months ago ago by Rose Tyler
I am trying to use php and javascript code in a new page template but it does not work and some elements disappear.
Could you tell me what is the correct way to use the code? Thank you
Hello,
Thanks for the topic.
Please describe in details with screenshots what was done and explain the desired result.
Regards
Can I include code in the page template or would I have to use an external file?
I send my url
Hello,
It depends on your need. If you want to include some php code, you need to edit .php file. Please read about child theme https://www.8theme.com/documentation/docs/child-theme/ https://codex.wordpress.org/Child_Themes To include some scripts you can create a new file with scripts and include it using the child theme. Also, Raw JS element can be used http://prntscr.com/jlldgm to include Java Script code on your page.
Feel free to ask if you have any other questions.
Regards
You must be logged in to reply to this topic.Log in/Sign up