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

instead of the original version online:


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?

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

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 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?

  • "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.