• 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)
  • Thread Starter Gr1f

    (@gr1f)

    wups, WP2.7 btw

    Thread Starter Gr1f

    (@gr1f)

    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 http://yoursite.com/images.blank.gif

    Thread Starter Gr1f

    (@gr1f)

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

    Thread Starter Gr1f

    (@gr1f)

    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.

    Thread Starter Gr1f

    (@gr1f)

    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.