user2517034
user2517034

Reputation: 3

Uploading Wordpress site from localhost to test on server, css not working

My site was working fine on localhost, but when I upload the site and to test it on this domain - 101share.co.uk - it seems like the stylesheets aren't being loaded properly. I'm sure it's something to do with the database, but I'm not sure.

Upvotes: 0

Views: 343

Answers (2)

user2517034
user2517034

Reputation: 3

I found the problem. It's that the roots theme tries to rewrite your urls in a way that Apache doesn't agree with.

If you comment out these lines under "config.php" it will work.

add_theme_support('root-relative-urls');    // Enable relative URLs
add_theme_support('rewrites');              // Enable URL rewrites

Upvotes: 0

Charlie74
Charlie74

Reputation: 2903

Are you sure you've uploaded all the sub folders?

I took a look at your site... viewed the source, and picked out one example file that should be included:

http://101share.co.uk/assets/css/bootstrap.css

When I try to view this file, it says the file does not exist. Make sure when you uploaded your site that you included all folders / subfolders, etc.

Hope that helps...

Upvotes: 2

Related Questions