Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wordpress: default location of header.php and footer.php

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?

like image 704
Jules Colle Avatar asked Sep 12 '12 15:09

Jules Colle


2 Answers

In the root folder of your wordpress theme e.g. wp-content/themes/mytheme so you will have to create these also ...

like image 187
RedEyedMonster Avatar answered Oct 31 '22 00:10

RedEyedMonster


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/

like image 40
Jules Colle Avatar answered Oct 31 '22 00:10

Jules Colle