Original site does not accept CSS that on localhost is working

Asked

Viewed 1,228 times

1

Use the GIT for the versioning of the project under development. I have a form made with the Contact Form 7 and to change his pattern, I changed some classes with . In the local version it worked. However when committing to the server, the CSS is not accepted, and in the file style.css server is equal to style.css local.

Does anyone know what it can be?

I checked that all now are not going to server when it is committed. Detail that only the added attributes are not working. Being that the path of the <head></head> It’s OK, otherwise nothing would work.

  • You have cleared the browser cache?

  • Your file style.css is not pointing to the correct address when deploying. Could you please post the <head></head> from your website?

1 answer

1

The most likely cause must be the path that was used in localhost is different in production.

Using firefox open the debug (hotkey F12, not firebug)

Console > Clear all, and leave only the Net

after that a Reload on your page,

go back to the console, there will show the (wrong) css path

  • probably it used manual path and no variable of home_url or site_url of wp

Browser other questions tagged

You are not signed in. Login or sign up in order to post.