Where to I place code that preceeds each page? (2 posts)

  1. drumat5280
    Posted 10 years ago #

    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.


  2. thornomad
    Posted 10 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic