Title: PHP Include
Last modified: August 31, 2016

---

# PHP Include

 *  Resolved [svsanchez](https://wordpress.org/support/users/svsanchez/)
 * (@svsanchez)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-include-10/)
 * Hello Stefano, this is a great plugin. It has almost solved my issue, but there’s
   only one thing I’m not being able to do: on my header, I need to call my menu
   which I do by including a file:
 * <?php include $_SERVER[‘DOCUMENT_ROOT’].’/menu/menu.html’;?>
 * However, this is not doing anything. It’s as if the plugin only processes html
   but not PHP.
 * [https://wordpress.org/plugins/header-footer/](https://wordpress.org/plugins/header-footer/)

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

 *  Plugin Author [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-include-10/#post-7002844)
 * Hi, you should modify the theme, header and footer acts only on the “head” section
   of tghe html page.
 *  Thread Starter [svsanchez](https://wordpress.org/support/users/svsanchez/)
 * (@svsanchez)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-include-10/#post-7002999)
 * Hi Stefano, what do you mean it only acts in the “head” section?
 * I am placing my code in the “Added just after the <body> tag” section and it’s
   working nice: I was able to add a custom header on top of my pages, BUT the only
   problem is php is not being processed, even though “PHP is allowed on textareas
   below” is clearly pointed out on the plugin’s backend.
 *  Plugin Author [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-include-10/#post-7003015)
 * Sorry you’re right, I’ve misunderstood you first message. I’ll check the plugin
   code, maybe for that injection (I added it recently) I forgot to execute PHP.
 *  Thread Starter [svsanchez](https://wordpress.org/support/users/svsanchez/)
 * (@svsanchez)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-include-10/#post-7003155)
 * Hello Stefano, I see you placed this question as resolved, but I updated the 
   plugin and PHP is still not being executed. I searched on all the plugin’s tabs
   but couldn’t find any option to execute PHP. Can you please tell me how to make
   it execute PHP?
 *  Plugin Author [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-include-10/#post-7003161)
 * I reverted the feature since it breaks some blogs. I need to change more code
   than supposed to make it work.
 *  Thread Starter [svsanchez](https://wordpress.org/support/users/svsanchez/)
 * (@svsanchez)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-include-10/#post-7003163)
 * OMG that’s too bad! I hope you can make it work soon.
 *  [ANGELINA GOMEZ RUEDA](https://wordpress.org/support/users/angelina-gomez-rueda/)
 * (@angelina-gomez-rueda)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/php-include-10/#post-7003168)
 * Gracias Stefano,te ruego elimines un correo privado, que por error te lo he enviado
   en una respuesta,era para otra persona.
 * Gracias, luego con tiempo, responderé al de la ayuda

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

The topic ‘PHP Include’ is closed to new replies.

 * ![](https://ps.w.org/header-footer/assets/icon-256x256.png?rev=3452717)
 * [Head, Footer and Post Injections](https://wordpress.org/plugins/header-footer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [ANGELINA GOMEZ RUEDA](https://wordpress.org/support/users/angelina-gomez-rueda/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/php-include-10/#post-7003168)
 * Status: resolved