Relative links in CSS, after moving Wordpress

Posted by bozdoz on Stack Overflow See other posts from Stack Overflow or by bozdoz
Published on 2011-11-12T01:40:29Z Indexed on 2011/11/12 1:52 UTC
Read the original article Hit count: 254

Filed under:
|
|
|

I created a blog with Wordpress on a temporary test domain. I put it in the main directory, not a folder. Now I want to move it to the correct website, in a folder. I can update all of the MySQL values for the site URL, and the relative path links work just fine.

The problem is that I can't seem to make my CSS path links work. I realize that my problem is that they are relative to the CSS file, in the WordPress theme, and not the page. But how can I fix this?

Here is an example:

#topNav {background:#3a93c3 url(wp-content/uploads/2011/07/blueNav.jpg) repeat-x;}

I have tried adding './', '../', and '../../' to the beginning, but it doesn't work at all.

Any suggestions?

© Stack Overflow or respective owner

Related posts about html

Related posts about css