Fatal error: Call to undefined function get_header() in index.php on line 2

having same issue, i am totally new in php. i install XAMPP then download hatch theme from wordpress. when i run index.php its gives me following error

"Fatal error: Call to undefined function get_header() in C:\xampp\htdocs\hatch\index.php on line 1"

can anyone help about this. Thanks


You need to have wordpress installed and then you can apply the theme. As far as I know you can't run WP themes by themselves.

Need Your Help

Inserting a text where cursor is using Javascript/jquery

javascript jquery

I have a page with a lot of textboxes. When someone clicks a link, i want a word or two to be inserted where the cursor is, or appended to the textbox which has the focus.

Navigation bar in front of the header and always on top of the screen when scrolling

html css navigation position

I'm trying to create a website, where after load the navigation bar is under the header and when it is scrolled down - navigation bar should go to the top of the screen and be attached to it, and