WordPress.org

Support

Support » How-To and Troubleshooting » Where to I place code that preceeds each page?

Where to I place code that preceeds each page?

  • drumat5280
    Member

    @drumat5280

    I could like to place some php code that preceeds each php blog page as it loads, but i am not sure where to place it.

    The code detects the IP address of my competitor and then sends me an email of where they are on my site. So it doesn’t need to be in the admin area.

    Thanks

Viewing 1 replies (of 1 total)
  • thornomad
    Member

    @thornomad

    Probably would want to put it in your header.php file in the theme you are using; then it would be called on every page of your site.

Viewing 1 replies (of 1 total)
  • The topic ‘Where to I place code that preceeds each page?’ is closed to new replies.