• When I create a post and it appears on my index.php it formats as it should, however, when its viewed as an archived post (via the permalink) it shows up as unformatted. What file do i have to edit to ensure my archived posts appear properly formatted? Or do I have to edit each archived post separately? Please tell me its not the latter…thanks.

Viewing 11 replies - 1 through 11 (of 11 total)
  • It’s probably the path to the css. Link ?

    Thread Starter mangelhaft

    (@mangelhaft)

    mangelhaft.org
    if you could take a look at it and tell me what you think the problem is i’d appreciate it. thanks.
    still a work in progress.

    Well the CSS does seem a bit er sparse.

    It’s your path to the css.
    The way WP had it configured on install would work.

    Thread Starter mangelhaft

    (@mangelhaft)

    yah the css is sparse but, i am just figuring it all out. testing things here and there. but why doesn’t the css carry over to the archived pages?

    Paths.
    You have the href set to ‘stylesheet’
    When looking at it from index.php, that’s cool, because index.php and the stylesheet are together.
    Once you use a permalink, that creates a ‘virtual’ directory structure, and the stylesheet does not live in that.
    Hence you need to instruct the program to always look for the css by using an absolute url, not a relative url.

    Thread Starter mangelhaft

    (@mangelhaft)

    what do i exactly need to change?
    <link href=”mangelhaftbeta.css” absolute=”stylesheet” type=”text/css”> on the index.php?
    or do i need to do something else in the program?
    thanks for all your help, sorry about all the questions.

    This is from the default index.php
    <style type="text/css" media="screen">
    @import url( <?php echo get_settings('siteurl'); ?>/wp-layout.css );
    </style>

    Change the ‘wp-layout.css’ to your stylesheet name.

    Thread Starter mangelhaft

    (@mangelhaft)

    Thank you very much … all working out now!

    Excellent !

    hi I’m having this same problem but it’s not the css that isn’t working — is there a way I can edit the actual template for archived entries? some stuff on there I don’t want. thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Archived post template question.’ is closed to new replies.