Try re-downloading all files & folders – except the wp-content folder – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.
Thread Starter
jp4389
(@jp4389)
I deleted all the files in my root folder except the wp-content folder and then copied the files over from a fresh download of WordPress. Then I updated the wp-config with the database name, username and password but I still get the same problem.
When I access WordPress by entering localhost/ in my browser the first page that appears is the sample opening page (Hello world! post) but when I navigate away from there the format changes.
There are two exceptions that I have found. When I navigate from the sample post to either ‘Customize’ or ‘Header’ in the drop down menu the site will remain normal. Anything else and it reverts to a list of links layout.
What url did you use when you first installed WordPress?
Thread Starter
jp4389
(@jp4389)
I can’t actually remember. This was the confusing bit about the installation instructions in the codex. I have all the WordPress files in a folder on my desktop so I think I typed in the filepath to the install.php file although I just tried that again and it didn’t work.
What urls are entered in Settings -> General? Have you changed these entries at any point?
Thread Starter
jp4389
(@jp4389)
http://localhost for both WordPress and site address. I have not changed these.
What url is being displayed in the browser when you navigate to a single post page?
Thread Starter
jp4389
(@jp4389)
The homepage is http://localhost
When I go to ‘Sample Page’ the url is http://localhost/?page_id=2
When I navigate to the ‘Hello world!’ post the url is http://localhost/?p=1
The layout of these three pages is fine.
So can you provide a url for a page that isn’t OK?
Thread Starter
jp4389
(@jp4389)
Try adding define('SCRIPT_DEBUG', true);to the bottom of your wp-config.php file (just before the require_once line).