I am trying to create a theme.
I created a
header.php file and call this file in
When I try to run my index.php file it shows this error:
Call to undefined function
What could be wrong?
Generally this happens when someone has mistakenly put index.php from a theme in the WP install folder, where it overwrites the index.php that is the main WordPress file. Download WordPress again, and take the one file, index.php from its root folder, replacing the file you now have as index.php