Support » Fixing WordPress » Permalinks break styles……

  • Hi, been reading up on the permalinks thing and i want to try and work out how to fix my setup. I incorporated WP into an existing site by editing the default theme. However, I am using a css file, scripts dir and images dir that’s located in the site root dir.

    header.php calls links like:
    <link href “style.css” …. etc>

    So, when i turn on permalinks the homepage is fine, but anything else looses all styling, i presume it has to do relative and absolute links but i’m not sure what to do about it.

    Any help appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • wups, WP2.7 btw

    Can anyone help??
    seems every post i make in here never gets an answer, is there a better forum for WP related issues?

    use absolute URLs for your images and CSS file.
    so instead of
    /images/blank.gif , use

    ok, i’ll give that a shot, and hey, thanks for the reply!

    actually, one problem i thought about. I have a local version of the site that i use for dev before it goes live, this is gonna mess that up.

    Either make both have absolute links to the root images, scripts, css etc. OR add all css, images and script folders into each theme folder of dev and live installs. I would go for the first option so I need to change only e.g. one CSS file instead of fixing three (root, live and dev) in the second.

    Thisnk i’m gonna deffo move the dir’s into the theme folder. Thanks for the help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Permalinks break styles……’ is closed to new replies.