Title: include header in external php file
Last modified: July 24, 2023

---

# include header in external php file

 *  Resolved [donnyk](https://wordpress.org/support/users/donnyk/)
 * (@donnyk)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/include-header-in-external-php-file/)
 * i was trying to include the header and the footer to an external php file that
   the user can visit while on my web site, i tried so many different ways but nothing,
   now i have the header and the footer but without the style using this code: do_shortcode(‘[
   my-shortcode]’). I tried also to include the css file but it’s pretty impossible
   to understand which one is working on, because on the google ispector i can easily
   notice 4/5 different stylesheet that descrive one element.

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

 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/include-header-in-external-php-file/#post-16921067)
 * Hi [@donnyk](https://wordpress.org/support/users/donnyk/),
 * Did you mean you would like to use this plugin on a non WordPress page? I don’t
   think it is possible to have such a scenario. Using a WordPress plugin outside
   of WordPress environment. Even if it can be done, I believe it will involve lots
   of code and highly customization thing. Something that we do not offer to support.
 * Kind regards,
    Herman 😊
 *  Thread Starter [donnyk](https://wordpress.org/support/users/donnyk/)
 * (@donnyk)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/include-header-in-external-php-file/#post-16930052)
 * why not?so if i have a non-wordpress page in my site i can’t add to that page
   the header created with this plugin? 
   i already did that but without the style
   but you are talking like i’m asking something impossible to do it.
 *  Plugin Support [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * (@bsfherman)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/include-header-in-external-php-file/#post-16934742)
 * Hi [@donnyk](https://wordpress.org/support/users/donnyk/),
 * WordPress plugin is created and developed for WordPress not for other platforms.
   As I previously mentioned, even if a WordPress plugin can be used “outside” of
   WordPress, it might involve lots of customization. There’s some reason why it’s
   called as `WordPress Plugin`. Please correct me if I am wrong, though.
 * To get a better help and idea about the thing how you would like to achieve, 
   I would suggest you start a thread on the [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   forum.
 * I am marking this thread as `Resolved`.
 * Kind regards,
    Herman 😊

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

The topic ‘include header in external php file’ is closed to new replies.

 * ![](https://ps.w.org/header-footer-elementor/assets/icon-256x256.gif?rev=3278750)
 * [Ultimate Addons for Elementor](https://wordpress.org/plugins/header-footer-elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer-elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer-elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer-elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer-elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer-elementor/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Herman Asrori (BSF)](https://wordpress.org/support/users/bsfherman/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/include-header-in-external-php-file/#post-16934742)
 * Status: resolved