Is there any way to include the Wordpress header in an external page that I created?

0

When I create a folder with the index inside my site files (where wordpress is installed), the blank page appears and it is used to put things and style normally, but does it have to include my theme header on this page?

I know it's a silly question, but how can I do that?

    
asked by anonymous 13.03.2017 / 16:49

1 answer

2

I think you'll have more work doing this than just making a page in Wordpress and setting it up as an initial. Why does WP do a lot of things before including the header on the site (connects to the database, fetches the menus, and so on). To set a WP page as your home page:

  • Create a page in Wordpress in Pages > Add new (Pages > Add new)
  • Set as homepage in Admin > Settings > Reading (Settings > Reading). In the first field, just check A static page and then choose your homepage in the box.

You can write the whole HTML of the page when you create it.

    
13.03.2017 / 18:57