• I enable permalinks for my site yesterday, but lose my layout when the links are used. The latest post comes up ok, but the minute I use the archives or click on the comments link, I lose the structure of my site.

    Can someone help please? thnks… https://www.keviv.net/blog

Viewing 11 replies - 1 through 11 (of 11 total)
  • Your server is returning this for the mainstyle.css URL:

    <!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”>
    <HTML><HEAD>
    <TITLE>404 Not Found</TITLE>
    </HEAD><BODY>
    <H1>Not Found</H1>
    The requested URL /blog/2005/07/stylesheets/mainstyle.css was not found on this server.<P>
    <P>Additionally, a 404 Not Found
    error was encountered while trying to use an ErrorDocument to handle the request.
    <HR>
    <ADDRESS>Apache/1.3.33 Server at https://www.keviv.net Port 80</ADDRESS>
    </BODY></HTML>

    Therefore you need to check your URL.

    Thread Starter keviv

    (@keviv)

    but im not using the mainstyle.css im using style.css in my own theme directory? or doesnt tht make a difference?

    Change your import line to:

    <!--@import url(/stylesheets/mainstyle.css);-->

    The relative link as you have it now (../stylesheets/) works it’s way up one directory (from blog) into the root, and looks for stylesheets/ there. With a custom permalink of something like:

    /blog/2005/07/13/post-name/

    The browser will be looking in “13/” for stylesheets/.

    Thread Starter keviv

    (@keviv)

    but 1.5 doesnt have a stylesheets folder right? currently, im using this line:
    @import url( https://www.keviv.net/blog/wp-content/themes/keviv/style.css );

    If you don’t have a stylesheets folder, why does your import point to it? Where is mainstyle.css?

    Thread Starter keviv

    (@keviv)

    well, when i updated from 1.2 to 1.5, i changed mainstyle.css into style.css and placed it in my theme folder (as per the instructions given on the WP Codex)

    Something is still calling for the mainstyle. If you view the source of your pages, that is what it is looking for. Maybe check the header.php?

    I’ve had a look at your site and mainstyle.css has a different set of styles to style.css

    You’ll need to remove the following line from your header.php
    <link rel="stylesheet" type="text/css" media="print" href="../stylesheets/mainstyle.css

    Then open up mainstyle.css, copy all the text and paste at the bottom of your themes style.css.

    Thread Starter keviv

    (@keviv)

    i tried to just create a stylesheets folder and put mainstyle.css in it, but it still doesnt work

    Thread Starter keviv

    (@keviv)

    im sorry, but where is header.php?

    also, i JUST created mainstyle.css by just copying style.css and renaming it, so how can it be different? (scratching head!) hmm, maybe i made a mistake..i’ll check again

    Thread Starter keviv

    (@keviv)

    ok..jst read the codex to find header. header.php is used in the defaul themes provided, but I dont use it in my theme. so whtever style info is being obtained is coming from index.php

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘why do i lose my layout when i use permalinks?’ is closed to new replies.