Page with JS and PHP Home › Forums › Weaver Xtreme Theme › Page with JS and PHP Topic Resolution: Answered This topic contains 5 replies, has 3 voices, and was last updated by Weaver 6 months, 2 weeks ago. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts March 7, 2018 at 18:17 UTC - Views: 53 #53727 Answered Alex777Participant Hello, I am trying to add one page with JS timer and PHP code. I found one example. It works separately. I need add it into wordpress page. I add JS into custom field page-head-code. But I don’t know how can I do this <body onload=”refresh();”> Are any way? March 8, 2018 at 02:37 UTC - Views: 41 #53735 scramblerModerator You can add JS in the page-head code custom field, but not PHP as is. To insert PHP, you must either use the Plus [php]…[/php] shortcode, or a PHP encapsulation plugin March 10, 2018 at 15:48 UTC - Views: 32 #53783 Alex777Participant I tryed but it didn’t work. I asked a wrong question. I have wordpress site. And I have one page custom php script. I need integrate it into wordpress site. I don’t know how it can be done right. March 10, 2018 at 22:10 UTC - Views: 23 #53789 scramblerModerator @weaver will have to comment on that, but he is away for a couple of days March 10, 2018 at 23:17 UTC - Views: 20 #53790 Alex777Participant Ok, I will wait. March 11, 2018 at 00:27 UTC - Views: 21 #53791 Best Answer WeaverKeymaster This reply has been accepted as the best answer. It would require a child theme to modify header.php. The <body> tag does not get filtered. Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic.