WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks break styles...... (8 posts)

  1. Gr1f
    Member
    Posted 5 years ago #

    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.

  2. Gr1f
    Member
    Posted 5 years ago #

    wups, WP2.7 btw

  3. Gr1f
    Member
    Posted 5 years ago #

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

  4. @mercime
    Volunteer Moderator
    Posted 5 years ago #

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

  5. Gr1f
    Member
    Posted 5 years ago #

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

  6. Gr1f
    Member
    Posted 5 years ago #

    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.

  7. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    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.

  8. Gr1f
    Member
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic