• Resolved jeffjohns

    (@jeffjohns)


    I want to add piwik tracking code on my site,then when i add php(to check if user is loged in),then I can’t see the javescript added.If I remove php code,only javascript is ok. I checked carefully about the php code,no problem.Maybe it’s not compatible with latest wordpress 4.1,Ijust Upgrade that.

    https://ww.wp.xz.cn/plugins/header-footer/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stefano Lissa

    (@satollo)

    Hi, the PHP in the footer configuration should be executed. Did you used the tag <?php ?

    Thread Starter jeffjohns

    (@jeffjohns)

    I’m sorry,I’m so idiotic! I add code to check if the user is admin,if so,don’t add track script. But I forget I’m the admin !

    I have confirmed that it’s no problem,I’m sorry to bother you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘php on footer does not work’ is closed to new replies.