Here's a really simple question. I have wordpress 3.4.2 installed. I'm trying to build a theme from scratch. So I've added a style.css file and an index.php file. Both only containing the bare minimum. Now I'm wondering when I call the get_header() and get_footer() functions from index.php, where are the header.php and footer.php files located that wordpress is using to generate the header and footer of my site?
In the root folder of your wordpress theme e.g. wp-content/themes/mytheme so you will have to create these also ...
Found the answer here: http://codex.wordpress.org/Function_Reference/get_header. It seems the default header.php and some other template files are in wp-includes/theme-compat/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With