0

After cloning a WP website locally everything works fine except main theme stylesheet is called is the following way:

http://127.0.0.1/my_site/wp-content/themes/mycollege/?ver=3

instead of the original version online:

http://www.my_site.com/wp-content/themes/mycollege/style.css?ver=3

Of course the first one doesn't work.

As I didn't touch anything either in template files or admin settings, where does this problem come from and how to solve it?

1
  • How are you including the stylesheet?
    – Tom J Nowell
    Sep 30 '15 at 1:13
0

If you used a plugin to move the site. I use WP Migration for instance. When you install the migrated version to your local environment, the plugin will change the domain to whatever your local domain is. In your case it is 127.0.0.1. The reason it does this is that many of the options are stored in a serialized array. If the original domain name has a different number of characters than the new sites domain the serialized arrays will be unreadable and all the settings will be lost.

I think that is what you were asking. Or was it that the style.css?ver=3 part was missing the style.css?

1
  • "Or was it that the style.css?ver=3 part was missing the style.css?" : yes, that.
    – drake035
    Oct 1 '15 at 20:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.