0

Hi,
New to wordpress and php so please bear with me.

I am using WAMP as a testing server and Dreamweaver CS5 as a text-editor to manipulate the theme files.

I have successfully set up a live local connection between WAMP, WP and DW and can view
the live index.php file from the wp-admin folder after using the 'discover' the dynamic files on dreamweaver.

My problem is that if I select the index.php files in the themes folder, I get the following error message and the link is broken:
Fatal error: Call to undefined function get_header in C:\WAMP\www\wordpress\wp-content\themes\twentyeleven\index.php on line 1

Is this because the activated theme is already being displayed dynamically in the wp-admin folder, and I am causing a conflict by going directly to the themes to edit the files?

Would be grateful for some feedback.

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by tobeeornot
0

Hi,

My problem is that if I select the index.php files in the themes folder, I get the following error message and the link is broken:
Fatal error: Call to undefined function get_header in C:\WAMP\www\wordpress\wp-content\themes\twentyeleven\index.php on line 1

You don't want to access that file directly. Rather, WordPress' index.php in the main site root, adjacent to wp-config.php (looks like wordpress\index.php in your configuration) is what you want to access. WordPress, 'the engine' will read the C:\WAMP\www\wordpress\wp-content\themes\twentyeleven\index.php on your behalf.

Developers using WordPress should isolate your changes to your currently selected theme folder and/or just to your wp-content folder. Everything else is considered 'core' files that should never be altered.

0

Well done Steveorevo. I did work it out a a day later but you are indeed right.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.