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 3 months, 2 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #53727
    Answered

    Alex777
    Participant

    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?

    #53735

    scrambler
    Moderator

    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

    #53783

    Alex777
    Participant

    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.

    #53789

    scrambler
    Moderator

    @weaver will have to comment on that, but he is away for a couple of days

    #53790

    Alex777
    Participant

    Ok, I will wait.

    #53791
    Best Answer

    Weaver
    Keymaster

    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.

     

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.