1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Including PHP in Footer

Discussion in 'Styling and Customization Questions' started by TigerXtrm, Apr 27, 2013.

  1. TigerXtrm

    TigerXtrm Member

    I have a very simple PHP include that I want to place in the footer template but apparently PHP is not parsed in template files.

    What would be the easiest way to include a PHP file in the footer of my pages?
  2. Ingenious

    Ingenious Well-Known Member

    Unless you want to start using iframes, you'll need to do this as a plugin.

    Have a look at this thread:


    There's some good advice there but even better, a downloadable .zip plugin if you scroll down through the posts which you can install. Then you need to edit the plugin to put in your own PHP and look for whatever hook (in the templates) where you want to execute your PHP. Or, edit a template and put your own hook in if you want to run your PHP somewhere there isn't already a hook.

    If you need any more help with this just ask.

Share This Page